electron-builder: appx - wrong icon / how to set assets
- Version: 10.6.1
- Target: appx (32/64)
When building for windows store the icon.ico isn’t used in a couple places. E. g. the installed software list shows a default electron icon. Start menu as well.
I found those default icons in assets. I haven’t yet figured out how to use my own icon for those assets.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (15 by maintainers)
Commits related to this issue
- fix ugly taskbar icon in ms builds — committed to ciderapp/Cider by vapormusic 2 years ago
For the icons here’s what I had to (thanks to Matteo Pagani from Microsoft):
For the assets:
If you have your assets:
transparentassets\Square150x150Logo.pngassets\NewStoreLogo.pngmakepri createconfig /cf priconfig.xml /dq en-US /pv 10.0.0(for win10)makepri new /pr . /cf priconfig.xmlcd ..signtool.exe sign -f path\to\your\cert.pfx -fd SHA256 -v .\name_of_the_appx.appxKey was the
-l(or/l) option for makeappx.exe plus the generatedunplatedasset versions.That’s quite a bunch of steps. I fear I have no time this year left to work on this 😐 Guess I’ll start with adding the props to the manifest.
Okay fixed I’m just a bad person who doesn’t read the doc properly. The issue was that for a resource named “SampleAppx.44x44.png”, I created a
SampleAppx.targetsize-44_altform-unplatedAND aSampleAppx.targetsize-44.png.So, two things here
The name is wrong -> for
SampleAppx.44x44.pngyou should create a file namedSampleAppx.44x44.targetsize-44_altform-unplated.pngYou only need the
targetsize-44_altform-unplated.pngfile and not thetargetsize-44.pngfileRef link: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion
Also there’s some manual steps that have to be done in order to publish the appx in the Windows Store. Maybe we can automate these, too. There’s four fields in the manifest that need to be set:
Publisher is already correctly set (CN=…). PublisherDisplayName was correct in my case, too. There might be cases where someone needs to set a different one. I’d say we add an option for each of the remaining three fields. Maybe
.build.win.appx.identitiy.name(default author.display name without whitespaces),.build.win.appx.properties.displayName(default productName) and.build.win.appx.properties.publisherDisplayName(default author)?@develar Shall I open a new issue? Option names okay? I would try to file a PR for this. Doc would also need an update of course.
I haven’t fixed the asset thing yet.