How to add icon to compiled project?

Hello! How do I add an icon to my haxe project app?

I tried adding this to my project.xml within the <project> tag:
<icon path="./Assets/icon.ico" />
but it didnt work at all, and instead just makes my application have no icon. In the \Export\windows\bin\ folder, there’s an assets folder with the icon instead.

I can of course add the icon manually with resource hacker, but this is cumbersome and I’m wondering if there’s a way to add it before compiling my project?

I’m using openfl build windows -release to compile.

If there’s any additional stuff that I need to share please tell me.

Thanks a lot!

Hello !

I’m not sure but maybe the .ico format is not supported : it doesn’t appear in the XML project file documentation XML Format

try with a .svg file or .png file(s) ?

Thanks for your suggestion! I tried this but it still doesn’t work :frowning:
I did this:
<app main="Main" path="Export" file="Pong">
<icon path="./Assets/paddle.png"></icon>
but again nothing is working lol

I usually use .svg files, but I just tested and confirmed that .png files can be used for icons on Windows.

<icon path="assets/img/myimage.png"/>

It might be worth adding the -clean argument to your build, to rule out anything being cached.

openfl build windows -release -clean