Is this error saying that I should be exporting a few more icon sizes? If so, which ones? I would like to get this done properly but there isn’t much documentation on this kind of thing.
Looks like its an issue when icon exporting with compression for older windows versions. If you can avoid any options in your icon editor or use the software Pkeod linked that is proven to work properly with corrected export settings.
I think there’s a larger icon size required on windows 11. I think this was discussed on the forum not too long ago. We should make sure the windows manual covers this.
I really struggled with this for both of my releases, so for the second one I documented the procedure in the comments. The main thing was the website used to generate the icons. I don’t know why it’s so hard, but it seems to matter where you get the conversion done, as if the output varies.
--set icon
if defos then
--https://www.aconvert.com/icon/png-to-ico/
--[[
Create multi-resolution icon from 256x256 PNG
16x16
32x32
48x48
64x64
96x96
128x128
--]]
local ICON_NAMES = {
["Windows"] = "win.ico",
["HTML5"] = "win.ico",
["Darwin"] = "face96x96.png"
}
if ICON_NAMES[system_name] then
defos.set_window_icon(defos.get_bundle_root()..defos.PATH_SEP..ICON_NAMES[system_name])
end
end