tutorials/export/changing_application_icon_for_windows #245
Replies: 4 comments 4 replies
-
If icon is blurry on high resolutions but normal on low try this auto resize order
|
Beta Was this translation helpful? Give feedback.
-
Replacing the Windows .exe icon from a Linux build pipeline was quite challenging, but I finally managed to get it working with: # Remove any previously set icons
xvfb-run "$WINE" "ResourceHacker.exe" \
-open "${PLATFORM_EXECUTABLE}" \
-save "${PLATFORM_EXECUTABLE}" \
-action delete \
-mask ICONGROUP
xvfb-run "$WINE" "ResourceHacker.exe" \
-open "${PLATFORM_EXECUTABLE}" \
-save "${PLATFORM_EXECUTABLE}" \
-action delete \
-mask MAINICON
# Try to set icon with ResourceHacker
xvfb-run "$WINE" "ResourceHacker.exe" \
-open "${PLATFORM_EXECUTABLE}" \
-save "${PLATFORM_EXECUTABLE}" \
-action modify \
-res icon.ico \
-mask ICONGROUP,MAINICON,0
# Try to set icon with rcedit
xvfb-run "$WINE" "rcedit-x64.exe" "${PLATFORM_EXECUTABLE}" --set-icon icon.ico Took me several hours to finally get something that works and at this point I'm not sure which of the steps is 100% necessary, but this combination seems to work and produce predictable results and that's good enough for me right now. This depends on magick -background none icon.svg -density 300 -define icon:auto-resize=256,128,96,80,72,64,48,32,24,16 icon.ico |
Beta Was this translation helpful? Give feedback.
-
None of this is necessary (since 4.1) unless you need manual control over the specific rescaled versions. |
Beta Was this translation helpful? Give feedback.
-
When using a Mac to export for Windows, you need to install Wine first (e.g. Then, download rcedit-x64.exe -- the most recent version from https://github.com/electron/rcedit/releases -- and save it somewhere on your system. (I've chosen Then, open Godot's Editor Settings, and go to Export >Windows.
Now the exported .exe will have the correct application icon, instead of the Godot default. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
tutorials/export/changing_application_icon_for_windows
By default, the exported project's icon will be the Godot icon. You will most likely want to change that for your project. There are two types of icons that can be changed on Windows: the file icon...
https://docs.godotengine.org/en/stable/tutorials/export/changing_application_icon_for_windows.html
Beta Was this translation helpful? Give feedback.
All reactions