support custom icons

This commit is contained in:
codetypes committed 2024-04-17 13:29:10 +08:00
1 parent 1c0ac119f4
commit b81d9449c9
8 files changed
+16 -6

No files matched your search

+4
View File
@@ -32,6 +32,9 @@ if (!app.requestSingleInstanceLock()) {
process.exit(0);
}
app.commandLine.appendArgument("–-allow-file-access-from-files");
app.commandLine.appendArgument("--disable-web-security");
// Remove electron security warnings
// This warning only shows in development mode
// Read more on https://www.electronjs.org/docs/latest/tutorial/security
@@ -73,6 +76,7 @@ async function createWindow(projectPath?: string) {
// Read more on https://www.electronjs.org/docs/latest/tutorial/context-isolation
nodeIntegration: true,
contextIsolation: false,
webSecurity: false,
},
});