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.
If you can and want — please file PR.
Will try, guess I'll have to start here https://github.com/electron-userland/electron-builder/blob/master/src/targets/appx.ts#L49
@black-snow Ouch, sorry, it is already implemented :) Just put 44x44.png and other such files into your build resources directory.
if (resourceList.includes(`${size}.png`)) {
return copy(path.join(packager.buildResourcesDir, `${size}.png`), target)
}
@develar You sure? I put myappname.44x44.png and the others (50x50, ...) into my build folder but it's still using the default ones.
// ah wait, I must leave out the app name, right?
ah wait, I must leave out the app name, right?
Yes. Only size.
Alright, that works. Some quirks, though.

Sources look okay, though. The images in pre-appx--ia32 are just fine and the manifest seems okay ...
I see that the BackgroundColor is also in the manifest. Maybe we need an option for that.
Do we need more assets? (https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/tiles-and-notifications-app-assets)
Guess we should add a note to the wiki for appx.
P.S.: There's a typo in the wiki. Next to signingHashAlgorithms in the windows section you're missing an r: Fo AppX sha256 is always used. ;)
// edit: Where does the Square150x150Logo etc. in the manifest come from? I can only find Logo and SmallLogo. https://msdn.microsoft.com/library/windows/apps/br211471
Fo AppX sha256 is always used.
Thanks, fixed.
Where does the Square150x150Logo etc. in the manifest come from? I
I don't know. To investigate.
@black-snow Would you like to help and fix this issue?
@develar of course. At first I'll unpack the appx and stuff all the assets in there that a VS plugin generated for me. Will report back.
/edit1: I used this VS plugin to generate a bunch of assets. I stuffed them into the appx/assets but there's still some blurry images. The icon on the install-screen is blurry and the taskbar icon still looks as in the screenshot above. I wonder why there's a BackgroundColor in the manifest - I don't see any other apps having a bg color in the taskbar - gonna research.
/edit2: transparent will default to the accent color but not "remove" the background/inset
/edit3: MS pointed me to this - sadly, the _unplated thing ain't seem to work
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.
Shall I open a new issue? Option names okay?
👍 Also, I think, it makes sense to allow any extra properties in the .build.win.appx.properties — just add it to resulting xml as is.
Shall I open a new issue?
PR will be enough if you will prepare it.
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 generated unplated asset 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.
https://github.com/electron-userland/electron-builder/pull/1017 for the extra custom properties
@black-snow Did you successfully submit appx to windows store?
@develar yup. I'm still thinking of automating the assets workflow.
@black-snow Hi, upping a 2 years old issue but, any easier way found to do this ? I'm struggling with the same error (blurry / margin in taskbar icon)
@baldash sadly no - I haven't revisited this issue since then. But let me hear if you find anything new!
@black-snow your instructions were very helpful, I fixed my main problem thanks to them !
but I still have one last issue, even when tweaking the target-size and target-size_unplated values, my icon doesn't seem to change its size:

Do eventually remember anything in relation to that ? That could be helpful ^^
(I followed everything except the VS part cause I already had my set of icons)
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-unplated AND a SampleAppx.targetsize-44.png.
So, two things here
The name is wrong -> for SampleAppx.44x44.png you should create a file named SampleAppx.44x44.targetsize-44_altform-unplated.png
You only need the targetsize-44_altform-unplated.png file and not the targetsize-44.png file
Ref link: https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-manual-conversion