chore: add debug mode for main process
This commit is contained in:
1 parent
2deb101c42
commit
3dc1bce537
9 files changed
+103
-12
No files matched your search
@@ -24,7 +24,7 @@ async function createWindow() {
|
||||
},
|
||||
})
|
||||
|
||||
if (app.isPackaged) {
|
||||
if (app.isPackaged || process.env['DEBUG']) {
|
||||
win.loadFile(join(__dirname, '../renderer/index.html'))
|
||||
} else {
|
||||
// 🚧 Use ['ENV_NAME'] avoid vite:define plugin
|
||||
|
||||
Reference in new issue
Block a user