Electron-builder: The built exe file is using Electron's Icon

Created on 13 Sep 2017  路  5Comments  路  Source: electron-userland/electron-builder

I have an icon.ico file on my build directory but when I build the app the icon of the exe file that was built on the unpacked folder is using electron's icon and not the icon I specified, the rest are good, the icon of the app when it runs is using my icon, the installer is also using my icon (I'm not sure about the uninstaller, I have not tried it out), but the application.exe is still using electron's icon.

build configuration
"build": {
  "nsis": {
    "oneClick": false,
    "perMachine": true,
    "allowElevation": true,
    "allowToChangeInstallationDirectory": true,
    "deleteAppDataOnUninstall": true,
    "createDesktopShortcut": true,
    "installerIcon": "build/icon.ico",
    "uninstallerIcon": "build/icon.ico",
    "uninstallDisplayName": "Uninstall LIMS",
    "license": "EULA"
  },
  "win":{
    "target": "nsis",
    "icon": "build/icon.ico",
    "publisherName": "April Mintac Pineda"
  },
  "appId": "com.aprilmintacpineda.lims",
  "productName": "Lending Information Management System (LIMS)",
  "buildVersion": "1.0.86.7",
  "copyright": "April Mintac Pineda 2017",
  "files": [
    "app/**/*",
    "models/**/*"
  ],
  "extraFiles": [
    "database/main.sqlite"
  ]
},
windows

Most helpful comment

Try to restart Windows :(

All 5 comments

PS, the icon.ico is 256x256.

Try to restart Windows :(

@develar Today, started my PC and fixed a few bugs in my app, then I built it with electron-builder and all of a sudden, like magic, the EXE is now using the app icon I have specified. All is well about the icon for now. Can you explain what happened though?

Bloody Windows.

Our NSIS installer does desktop icons refresh.

In case of macOS we specially update timestamp of file, maybe we should do it for Windows (but it should be not required since we modify file in any case).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ccorcos picture ccorcos  路  3Comments

jhg picture jhg  路  3Comments

xingoxu picture xingoxu  路  3Comments

lbssousa picture lbssousa  路  3Comments

philcockfield picture philcockfield  路  3Comments