Error: Couldn't load project data at path ".". Is the .pck file missing - after export with rcedit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Elendir

I’d like to export my project to Windows 10 platform. Normal export works fine.

Now my intention is to replace the default Godot icon with my custom one. I followed instructions at https://docs.godotengine.org/pl/stable/getting_started/workflow/export/changing_application_icon_for_windows.html

I added rcedit.exe in Editor Settings. The export process finished, but the icon on the exported executable didn’t change. Looking for some answers on the web I found an advise to change the export directory to a different one. It indeed helped. Now the exported executable has my custom icon. The problem is I cannot run it. I get the error message:

Error: Couldn’t load project data at path “.”. Is the .pck file missing?

Is there any workaround?

PS.
I tried running rcedit.exe in command line to replace icon on a working executable. It didn’t change the icon.
I also ran another program resource hacker - this cannot even load the execuable rendering violation error right from the get go.