Fix application icon for Windows and Linux

See #85
This commit is contained in:
Yuya Ochiai
2016-03-21 00:28:02 +09:00
parent 12d9fe5a6a
commit fbead4de5e
2 changed files with 3 additions and 1 deletions

View File

@@ -117,7 +117,9 @@ app.on('ready', function() {
// follow Electron's defaults
window_options = {};
}
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
if (process.platform === 'linux') {
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
}
window_options.fullScreenable = true;
mainWindow = new BrowserWindow(window_options);
mainWindow.setFullScreenable(true); // fullscreenable option has no effect.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 124 KiB