问题
When I create and install an executable using Electron-Builder, the desktop shortcut instead displays an Electron icon. I have to manually Change Icon...
for icon.ico
to take effect.
"target": "nsis",
"icon": "assets/icon_256.ico",
"nsis": {
"installerIcon": "assets/icon.ico",
"uninstallerIcon": "assets/icon.ico",
"installerHeaderIcon": "assets/icon.ico"
}
// I have also tried this, which also produces the same issue.
"win": {
"target": "nsis",
"icon": "assets/icon_256.ico"
}
Is there a way to force it to take effect upon installation as would be expected?
Link to the issue on GitHub.
来源:https://stackoverflow.com/questions/60143077/electron-builder-desktop-shortcut-icon-has-to-be-enabled-manually