chore: update types

This commit is contained in:
草鞋没号 2023-08-02 11:01:49 +08:00
parent 4bb103c014
commit d548009325
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,6 @@ declare namespace NodeJS {
DIST_ELECTRON: string
DIST: string
/** /dist/ or /public/ */
PUBLIC: string
VITE_PUBLIC: string
}
}

View File

@ -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