From d548009325e2ecf93d0dfa8a940fb419236c12db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Wed, 2 Aug 2023 11:01:49 +0800 Subject: [PATCH] chore: update types --- electron/electron-env.d.ts | 2 +- electron/main/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts index 5f0b7f5..683a865 100644 --- a/electron/electron-env.d.ts +++ b/electron/electron-env.d.ts @@ -6,6 +6,6 @@ declare namespace NodeJS { DIST_ELECTRON: string DIST: string /** /dist/ or /public/ */ - PUBLIC: string + VITE_PUBLIC: string } } \ No newline at end of file diff --git a/electron/main/index.ts b/electron/main/index.ts index 38bbb63..9eb5399 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -44,7 +44,7 @@ const indexHtml = join(process.env.DIST, 'index.html') async function createWindow() { win = new BrowserWindow({ title: 'Main window', - icon: join(process.env.VITE_PUBLIC!, 'favicon.ico'), + icon: join(process.env.VITE_PUBLIC, 'favicon.ico'), webPreferences: { preload, // Warning: Enable nodeIntegration and disable contextIsolation is not secure in production