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 p
If you want to update the app icon in the taskbar, then Update following in main.js (if using typescript then main.ts)
win.setIcon(path.join(__dirname, '/src/assets/logo-small.png'));
__dirname points to the root directory (same directory as package.json) of your application.
__dirname
package.json