admin管理员组

文章数量:1295873

I am creating a react / electron desktop app for mac/windows/linux. When I run my electron-builder command npm run build it creates the dist/ folder containing my windows builds. It creates windows builds for "7z","appx","portable", the portable build is just an .exe, where when I launch the .exe I can see my custom icon appear in the taskbar perfectly fine:

But when I upload my appx file to the windows store, submit and release it, appears in my taskbar with the default electron icon

Is there an additional step I need to do in order for electron-builder to set the appx icon correctly? my package.json is here: .json And the logs of my build are here:

here is my package.json code that sets the icon:

    "appx": {
      "applicationId": "RenderTune",
      "identityName": "1845martinbarker.digify",
      "publisher": "CN=E69B865D-5831-4BE5-9AA4-08E27DAAD66C",
      "publisherDisplayName": "martinbarker",
      "backgroundColor": "#a0beeb"
    },
    "win": {
      "target": [
        "7z",
        "appx",
        "portable"
      ],
      "extraResources": [
        {
          "from": "ffmpeg/win32-${arch}/lib",
          "to": "resources"
        }
      ],
      "signAndEditExecutable": true,
      "icon": "icon-build/app.ico"
    },

本文标签: electroncustom icon not appearing in windows appx buildStack Overflow