Open jandrieu opened 5 years ago
I'm also running into this problem, not sure if there are workarounds to set the application icon on windows or not
Someone who knows the code base should be able to update the open to use a well-structured path rather than just throw the string into the function. I'm just not sure where it is. We went ahead and shipped our MVP without an icon, but it's an issue we'd still like to see fixed.
Please specify your windows version and arch (32 or 64 bit).
For me its 64bit Windows 10
Me too.
it is not electron-builder issue. But it doesn't matter for you as end user. I am investigating why it is broken.
Please try 21.0.11
Please try 21.0.11
Has this problem been solved?
I had this same problem. In my case the problem was in the format of the single image. I used a different converter for the ico format and it worked without problems.
I hope it helps you!
I had this same problem. In my case the problem was in the format of the single image. I used a different converter for the ico format and it worked without problems.
I hope it helps you!
Thank you so much, this was perfect! This bug should be closed.
Detailed Explanation: When compiling with Electron Packager/Builder, I got this:
WARNING: Could not find icon "C:\Users\AM\electron-quick-start\icon.ico", not updating app icon
This told me that it was automatically searching for a .ico file. So I decided to rename the file from icon.png to icon.ico. This might of changed the file type, but the binaries of PNG wouldnt be converted to ICO. You need to use an PNG to ICO converter for this. Thank you to @lvsouza for sparking this answer!
Thanks !! I've used this website to convert from png to ico choosing the size and without any background as png could provide https://redketchup.io/icon-converter
Jo guys. Make sure your Icon is actually an .ico and not just a changned png with a different file ending!!!!
In my windows configuration, I use the following:
And the release command:
When I run "npm run release", I get an error because the windows file path is not quoted, so drive "C" is the attempted target for finding an icon:
[I snipped the rest of the trace]
Note: the constructed file path for the icon is correct. If it were just quoted, I believe this would work.
I looked through the source, but my initial inspection did not find the spot where the command is constructed.
Any pointers would be appreciated.