File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { update } from './update'
15
15
//
16
16
process . env . DIST_ELECTRON = join ( __dirname , '../' )
17
17
process . env . DIST = join ( process . env . DIST_ELECTRON , '../dist' )
18
- process . env . PUBLIC = process . env . VITE_DEV_SERVER_URL
18
+ process . env . VITE_PUBLIC = process . env . VITE_DEV_SERVER_URL
19
19
? join ( process . env . DIST_ELECTRON , '../public' )
20
20
: process . env . DIST
21
21
@@ -44,7 +44,7 @@ const indexHtml = join(process.env.DIST, 'index.html')
44
44
async function createWindow ( ) {
45
45
win = new BrowserWindow ( {
46
46
title : 'Main window' ,
47
- icon : join ( process . env . PUBLIC , 'favicon.ico' ) ,
47
+ icon : join ( process . env . VITE_PUBLIC ! , 'favicon.ico' ) ,
48
48
webPreferences : {
49
49
preload,
50
50
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
You can’t perform that action at this time.
0 commit comments