added multi os icon specs
This commit is contained in:
parent
0d1a2e59d4
commit
45d735835b
|
@ -7,23 +7,37 @@ let win;
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
win = new BrowserWindow({
|
if(process.platform === "win32"){
|
||||||
width: 377,
|
win = new BrowserWindow({
|
||||||
height: 800,
|
width: 377,
|
||||||
title: "Sengi",
|
height: 800,
|
||||||
//icon: join(__dirname, '/src/assets/icons/icon-512x512.png'),
|
title: "Sengi",
|
||||||
icon: join(__dirname, '/assets/icons/win/icon.ico'),
|
icon: join(__dirname, '/assets/icons/win/icon.ico'),
|
||||||
backgroundColor: "#131925",
|
backgroundColor: "#131925",
|
||||||
useContentSize: true,
|
useContentSize: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
spellcheck: false
|
spellcheck: false
|
||||||
}
|
}
|
||||||
// webPreferences: {
|
// webPreferences: {
|
||||||
// contextIsolation: true,
|
// contextIsolation: true,
|
||||||
// nodeIntegration: false,
|
// nodeIntegration: false,
|
||||||
// nodeIntegrationInWorker: false
|
// nodeIntegrationInWorker: false
|
||||||
// }
|
// }
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
win = new BrowserWindow({
|
||||||
|
width: 377,
|
||||||
|
height: 800,
|
||||||
|
title: "Sengi",
|
||||||
|
//icon: join(__dirname, '/src/assets/icons/icon-512x512.png'),
|
||||||
|
icon: join(__dirname, '/assets/icons/png/512x512.png'),
|
||||||
|
backgroundColor: "#131925",
|
||||||
|
useContentSize: true,
|
||||||
|
webPreferences: {
|
||||||
|
spellcheck: false
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
win.setAutoHideMenuBar(true);
|
win.setAutoHideMenuBar(true);
|
||||||
win.setMenuBarVisibility(false);
|
win.setMenuBarVisibility(false);
|
||||||
|
|
Loading…
Reference in New Issue