This simple (work in progress) addon allows you to set the icon for your Window EXE file without having to use Wine, or build on a Windows computer with rcedit.exe.
It uses editpe (https://github.com/Systemcluster/editpe), a Rust project that does the same thing that rcedit.exe does on Windows. But because it uses Rust, I made a Rust based GDExtention to make a simple Node that can now do the same thing rcedit does, but now is able to run on other platforms like Linux.
My solution is not ideal. I created it only to prove that everything works cross platform.
- Only the Windows and Linux versions of the GDExtention (the addon) works.
- You need to specify the FULLY QUALIFIED path to the icon image file and the Windows EXE file that you want to apply a plugin.
- Its built as a Node, so you need to use the
WindowIconGeneratorNode in a test scene to generate it manually. A test scene is included in theaddons/WindowsIcondirectory. - there is no error checking or exception handling so your paths need to be perfect.
- Open the
windows_icon_test.tscnscene. - Update the
Icon PathandExe Pathvalues to the FULLY QUALIFIED path to the icon image file and the Windows EXE file that you want to apply a plugin. - This test scene just calls
make_icon()methodon_ready()and then exits (automatically). - Run THIS scene (make sure of this or else nothing happens).
I use CROSS (https://github.com/cross-rs/cross) to compile and build the Windows and Linux versions. Installing and configuring CROSS is too big to detail out in this README.
