chore: rename

This commit is contained in:
草鞋没号 2023-08-02 10:53:32 +08:00 committed by GitHub
parent 6901c23a43
commit 356d456755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import { update } from './update'
//
process.env.DIST_ELECTRON = join(__dirname, '../')
process.env.DIST = join(process.env.DIST_ELECTRON, '../dist')
process.env.PUBLIC_ELECTRON = process.env.VITE_DEV_SERVER_URL
process.env.VITE_PUBLIC = process.env.VITE_DEV_SERVER_URL
? join(process.env.DIST_ELECTRON, '../public')
: process.env.DIST
@ -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.PUBLIC_ELECTRON!, 'favicon.ico'),
icon: join(process.env.VITE_PUBLIC!, 'favicon.ico'),
webPreferences: {
preload,
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production