On Monday, 20 August 2018 at 13:42:58 UTC, spikespaz wrote:
I would also like to know how to add a PNG or ICO file to my compiled executable. I have icons in the resolutions of 16, 32, 64, 128, 256. Currently I'm adding them in using GitHub's RCEDIT tool (https://github.com/electron/rcedit) but I would like a more proper way.

Compile resource files with windres utility from mingw https://sourceware.org/binutils/docs/binutils/windres.html
Example:
--- deflector.rc ---
1 ICON "icon001.ico"
2 ICON "icon002.ico"
3 ICON "icon003.ico"
4 ICON "icon004.ico"
5 ICON "icon005.ico"
6 ICON "icon006.ico"
7 ICON "icon007.ico"
8 ICON "icon008.ico"
9 ICON "icon009.ico"
---

windres deflector.rc deflector.o

Reply via email to