Open
Description
I set my icon in package.json as
build": {
"productName": "xx",
"appId": "xxx.xx.xx",
"win": {
"icon": "icon.png"
},
"nsis": {
"oneClick": false,
"guid": "idea",
"perMachine": true,
"allowElevation": true,
"allowToChangeInstallationDirectory": true,
"installerIcon": "icon.png",
"uninstallerIcon": "icon.png",
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "idea"
}
}
whatever image i set , it throws error failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
and Error while loading icon from "xxxxxxxxxx\webapp\icon.png": invalid icon file
.
I know this error comes from NSIS, but I have used NSIS which installed on my computer to package other application with this .png file.
so, what should I set the shortcut icon correctly?