windowsiconsnode-webkittaskbar

NW.js Windows 10 Taskbar icon shows always default


In Windows 10 the taskbar is not showing my custom-made icon. I am using the latest (at the moment of writing) 0.51.1 version of nw.js and the taskbar icon always defaults doesn't matter what I am doing. Even though the .exe icon is changing on the build and behaves as expected. Have anyone managed to solve this issue? I read almost all issues log on this topic on the official nw.js Github page but it doesn't help and seems like the issue still happens for some users.

enter image description here

here is my package.json file

{
  "name": "com.domain.product",
  "version": "0.1.0",
  "build": {
    "nwVersion": "0.51.1",
    "nwFlavor": "normal",
    "strippedProperties": [ "scripts", "devDependencies", "build", "chromium-args"],
    "mac": {
      "name": "Product Name",
      "icon": "ProductName.icns"
    },
    "win": {
      "name": "ProductName",
      "icon": "icon/ProductName.ico"
    },
    "output": "../build"
  },
  "window": {
    "width": 314,
    "height": 660,
    "frame": false,
    "transparent": true,
    "toolbar": false,
    "resizable": false
  },
  "main": "index.html",
  "node-remote": [ "<all_urls>"]
}

Solution

  • Here is a more complex example, but look for how icons are handled in the the window setting and in the build settings: