Electron-builder desktop shortcut icon has to be enabled manually

这一生的挚爱 提交于 2020-02-16 10:41:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!