+1 vote

I followed the instructions.
The exported exe has the image, but it will not run anywhere outside of the project folder. If you attempt to run it anywhere outside the project folder windows will show this error

Error: Could not load game data at path '.'. Is the .pck file missing?

Yes, "Embed Pck" is enabled in the export settings.

Removing rcedit from godot makes .exes run anywhere again. So you can't add an image to the program that way.

Well, if that wasn't enough, even resourcehacker doesn't work. Any other executable? Perfectly fine. It's just the one that godot exports that it fails on.

nope

Is it even possible? Has any human attempted this yet, adding an icon to their executable?

Godot version 3.2.3
in Engine by (16 points)

1 Answer

0 votes

It's not possible at the moment

Issue #33466 tracks this in detail, there's also a duplicate #45345.

tl;dr

using rcedit to set resulting .exe's icon breakes standalone export.

The exporter needs to be fixed/rewritten.

If you insist on having standalone .exe with custom icon, I think you need to

a) fix the Godot exporter ¯\_(ツ)_/¯
b) disable rcedit in Godot and modify the .exe post-export yourself

by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.