Skip to content

Commit bcf595f

Browse files
authored
Merge pull request #10519 from Calinou/changing-windows-icon-add-ico-generation
Document automatic ICO generation in Changing application icon for Windows
2 parents cb80512 + 36c5f34 commit bcf595f

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

tutorials/export/changing_application_icon_for_windows.rst

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,25 @@ By default, the exported project's icon will be the Godot icon.
77
You will most likely want to change that for your project. There are two types
88
of icons that can be changed on Windows: the file icon and the taskbar icon.
99

10-
Creating an ICO file
11-
--------------------
10+
Creating a custom ICO file
11+
--------------------------
1212

13-
Windows does not use formats such as png or jpg for application icons. Instead,
13+
.. note::
14+
15+
Since Godot 4.1, Godot can create an ICO file for you based on the icon file
16+
defined in the Windows export preset. This icon file can be in PNG, WebP or
17+
SVG format. If no icon is defined in the Windows export preset, the
18+
:ref:`application/config/icon <class_ProjectSettings_property_application/config/icon>`
19+
project setting is used automatically instead.
20+
21+
This means you no longer need to follow the steps in this section to
22+
manually create an ICO file, unless you wish to have control over the icon
23+
design depending on its displayed size. Note that even if Godot creates the
24+
ICO file for you, you still need to
25+
:ref:`set up rcedit <doc_changing_application_icon_for_windows_changing_the_file_icon>`
26+
so that the file icon actually changes.
27+
28+
Windows does not use formats such as PNG or JPEG for application icons. Instead,
1429
it uses a Windows-only format called ICO. You can create your application icon
1530
in any program but you will have to convert it to an ICO file using a program such
1631
as GIMP.
@@ -59,6 +74,8 @@ This setting only changes the icon for your exported game on Windows.
5974
To set the icon for macOS, use ``Macos Native Icon``. And for any other platform,
6075
use the ``Icon`` setting.
6176

77+
.. _doc_changing_application_icon_for_windows_changing_the_file_icon:
78+
6279
Changing the file icon
6380
----------------------
6481

@@ -67,13 +84,6 @@ external tools using `godoticon <https://github.com/pkowal1982/godoticon>`__.
6784
Changing the file icon this way should work for executables containing
6885
an embedded PCK.
6986

70-
.. warning::
71-
72-
There are `known issues <https://github.com/godotengine/godot/issues/33466>`__
73-
when changing the application icon in executables that embed a PCK file.
74-
It's recommended to avoid using rcedit for now if you choose to enable the
75-
**Embed Pck** option for your Windows export preset in the Export dialog.
76-
7787
The file icon is the icon of the executable that you click on to start
7888
the project.
7989

@@ -94,8 +104,8 @@ Navigate to and select the rcedit executable.
94104
Linux and macOS users will also need to install
95105
`WINE <https://www.winehq.org/>`_ to use rcedit.
96106

97-
On macOS 10.15 (Catalina) or later, make sure to use a 64-bit version of
98-
both WINE and rcedit since 32-bit applications aren't supported anymore.
107+
On macOS, make sure to use a 64-bit version of both WINE and rcedit since
108+
32-bit applications aren't supported anymore.
99109

100110
.. image:: img/icon_rcedit.webp
101111

0 commit comments

Comments
 (0)