Windows build icon problem (DEF-1790) (SOLVED)

You can see this problem in the Defold editor too

I’m not sure what’s wrong, but I know I dealt with this kind of problem before in the past. Here is my tools for building icon.res files if that helps. I use https://iconverticons.com/online/ to make good ico files from pngs

icon.zip (545 Bytes)

Maybe custom icon is simply being ignored? The main exe doesn’t show custom icon either after being bundled.

2 Likes

Try using an icon that only contains sizes 128, 48, 32 and 16. I was trying an .ico file with more resolutions, and bob.jar was throwing the following error:

Error - 4 icon(s) not replaced in /var/folders/mm/jk7g3fgx3q18vhcrhl8wq93h0000gn/T/7238089774573629213/x86-win32/dmengine_release.exe using /Applications/Defold/branches/20702/11115/master/resources/win32/app_icon.ico
1 Like

Nah, now I don’t get an error, but I don’t get the proper icon either…

1 Like

I looked at the code and it seems as though it requires a .ico file with the following seven images:

* 1. 256x256, 32 bit (RGB / Alpha Channel)
* 2. 48x48, 32 bit (RGB / Alpha Channel)
* 3. 32x32, 32 bit (RGB / Alpha Channel)
* 4. 16x16, 32 bit (RGB / Alpha Channel)
* 5. 48x48, 8 bit (256 colors)
* 6. 32x32, 8 bit (256 colors)
* 7. 16x16, 8 bit (256 colors)

Could you please check your .ico file?

1 Like

Just tried with this .ico with seven images in the format you specified, and no luck.

Do you have a sample .ico that works that we can study?

app_icon.ico.zip (69.4 KB)

1 Like

Sorry for bumping this thread, but I’m still interested in solving this. @britzl do you have an .ico that works, so that we can take a guess at what’s happening?

1 Like

This was actually a bug in the build/bundle-steps, @jakob.pogulis has already merged a fix for this and it will land in the stable on Monday! :slight_smile: I’m adding the issue id to the topic as well. Thanks for reporting!

4 Likes

Great to know, thank you!

2 Likes