mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-04-06 03:30:12 +08:00
chore: VITE_DEV_SERVER_URL instead app.isPackaged
This commit is contained in:
parent
f9fee2e62f
commit
0776ebea38
@ -10,7 +10,9 @@
|
||||
//
|
||||
process.env.DIST_ELECTRON = join(__dirname, '..')
|
||||
process.env.DIST = join(process.env.DIST_ELECTRON, '../dist')
|
||||
process.env.PUBLIC = app.isPackaged ? process.env.DIST : join(process.env.DIST_ELECTRON, '../public')
|
||||
process.env.PUBLIC = process.env.VITE_DEV_SERVER_URL
|
||||
? join(process.env.DIST_ELECTRON, '../public')
|
||||
: process.env.DIST
|
||||
|
||||
import { app, BrowserWindow, shell, ipcMain } from 'electron'
|
||||
import { release } from 'os'
|
||||
|
Loading…
x
Reference in New Issue
Block a user