7
\$\begingroup\$

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?

\$\endgroup\$
3
\$\begingroup\$

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).

\$\endgroup\$
  • \$\begingroup\$ Glad to help, but give it a little time before accepting an answer in case someone else comes along with a better approach. I don't use Love myself. \$\endgroup\$ – jhocking Apr 13 '12 at 18:18
  • 3
    \$\begingroup\$ It looks like that's the way it's done. \$\endgroup\$ – user1201210 Apr 13 '12 at 22:13
2
\$\begingroup\$

The steps below are also covered in a video tutorial (icon topic starts at 2:22).

  1. Create an .ico file using GIMP, you can use the game.ico or love.ico included in the 32bit redistributable of LÖVE as a template.
  2. Rename your .exe file to nonsense.exe (explanation below).
  3. 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.

    resource hacker screenshot

  4. Press Save (floppy disk icon).

  5. You might not see the change yet. Rename nonsense.exe to yourgamename.exe and it should become visible.
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.