Electron Forge Version:
6.0.0-beta.51
Electron Version:
v9.0.2
Operating System:
Windows 10
Expected to set icon in production as the same way we do in development.
I'm having issues to set app icon in my application, below is my configuration, it works on development mode, but fails on production mode.
const mainWindow = new BrowserWindow({
icon: 'src/assets/icon.png',
});
The output is the following
Error: Image could not be created from src/assets/icon.png
Also, here as printscreen from the error

https://github.com/waghcwb/electron-forge-sample
The error happens when you run npm run make
This isn't a bug in Electron Forge. See the FAQ entry from Electron Packager.
This didn't work for me. For those who whiling how to setup icon in electron forge you can do this way in your package.json file
{
"config": {
"forge": {
"packagerConfig": {
"icon": "src/assets/images/icon.ico"
},
},
}
Most helpful comment
This didn't work for me. For those who whiling how to setup icon in electron forge you can do this way in your
package.jsonfile