How do you set the app icon for your Electron app?
I am trying BrowserWindow({icon:'path/to/image.png'}); but it does not work.
BrowserWindow({icon:'path/to/image.png'});
Do I need to pack the app to see the effect?
Setting the icon property when creating the BrowserWindow only has an effect on Windows and Linux.
icon
BrowserWindow
To set the icon on OS X, you can use electron-packager and set the icon using the --icon switch.
--icon
It will need to be in .icns format for OS X. There is an online icon converter which can create this file from your .png.
1.4m articles
1.4m replys
5 comments
57.0k users