I merged my game.love
file and the love.exe
with the command copy /b love.exe+app.love game.exe
. But the resulting executable has the default LÖVE2D icon.
Is there a way to change that icon to another one?
I don't know much about Love so I don't know if there is a built-in way, but you can change the icon of an executable file using a variety of icon editing software. Last time I did this in days of yore my weapon of choice was IconForge but I'm sure there are other tools available now (like these).
The steps below are also covered in a video tutorial (icon topic starts at 2:22).
game.ico
or love.ico
included in the 32bit redistributable of LÖVE as a template..exe
file to nonsense.exe
(explanation below).Drag the .exe
file into Resource Hacker, unfold Icon Group
and right-click the only item in it. Select "Replace icon ..." and select the .ico
file you created.
Press Save (floppy disk icon).
nonsense.exe
to yourgamename.exe
and it should become visible.