question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

appx - wrong icon / how to set assets

See original GitHub issue
  • 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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

3reactions
black-snowcommented, Dec 15, 2016

For the icons here’s what I had to (thanks to Matteo Pagani from Microsoft):

For the assets:

  • get the VS plugin
  • create a new universal app project in VS 2015
  • remove the existing assets
  • drop your own icon into assets (400x400 or bigger)
  • rightclick your icon, select generate assets

If you have your assets:

  • unpack the electron-builder-generated appx
  • copy your own assets into the unpacked assets folder
  • edit the manifest:
    • set Applications.Application.VisualElements.BackgroundColor to transparent
    • set Applications.Application.VisualElements.Square150x150Logo to assets\Square150x150Logo.png
    • Square44x44 and Wide310x150 analogue
    • set Properties.Logo to assets\NewStoreLogo.png
  • now open the VS2015 native cmd (x86 for 32bit / x64 for 64bit)
  • navigate to the unpacked files
  • run makepri createconfig /cf priconfig.xml /dq en-US /pv 10.0.0 (for win10)
  • run makepri new /pr . /cf priconfig.xml
  • cd ..
  • run `makeappx pack -d “.\your_unpacked_files” -p “name_of_the_appx.appx” -l
  • and optionally sign signtool.exe sign -f path\to\your\cert.pfx -fd SHA256 -v .\name_of_the_appx.appx

Key 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.

2reactions
baldashcommented, Nov 5, 2019

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

  1. The name is wrong -> for SampleAppx.44x44.png you should create a file named SampleAppx.44x44.targetsize-44_altform-unplated.png

  2. 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

[UWP] Wrong logo shown in the Windows Store for our app
Did you do these steps? Open your package.appxmanifest; Access to the tab "Visual Assets"; Select store Logo; To "Background" property put your ...
Read more >
Using custom icon assets with DesktopAppConverter UWP
The easiest way to handle the visual assets for your app package is to use the package manifest editor in Visual Studio 2017....
Read more >
When making Windows Store build, icons not found in ...
I'm trying to make a build for the Windows store. I set up the icon files as suggested in this document:
Read more >
Missing App Icon in Asset Catalog … | Apple Developer Forums
I have an app which has a Asset Catalog (Media.xcassets) which has an icon set called AppIcon - which I've generated a few...
Read more >
Material Symbols and Icons - Google Fonts
Material Symbols are our newest icons consolidating over 2500 glyphs in a single font file with a wide range of design variants.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found