Page 1 of 1

Making an Exe out of a .love file

Posted: Sun Apr 07, 2013 2:06 pm
by gigimoi
In http://www.love2d.org/wiki/Game_Distribution , the wiki states that to create a .exe out of a .love file, you run the line "copy /b love.exe+game.love game.exe" in the command line.

What exactly is "copy /b love.exe+game.love game.exe" doing to produce an executable?

Re: Making an Exe out of a .love file

Posted: Sun Apr 07, 2013 3:09 pm
by Nixola
I think it just appends the .love file to the LÖVE executable, resulting in game.exe; when run, LÖVE checks if it has an appended .love in the executable, and runs it if it finds it.

Re: Making an Exe out of a .love file

Posted: Sun Apr 07, 2013 3:24 pm
by gigimoi
Huh, that's an odd way to handle it, but certainty correct and tested.

Re: Making an Exe out of a .love file

Posted: Sun Apr 07, 2013 6:13 pm
by T-Bone
It's actually a very nice and easy way to do it. Too bad building for Mac isn't as easy.

Re: Making an Exe out of a .love file

Posted: Sun Apr 07, 2013 7:34 pm
by slime
T-Bone wrote:It's actually a very nice and easy way to do it. Too bad building for Mac isn't as easy.
It's even easier: you just stick the .love file in love.app/Contents/Resources/, and rename love.app to game.app. Presto!
Although, you might want to remove the plist stuff that makes .love files open with that app, as the wiki says.

Re: Making an Exe out of a .love file

Posted: Mon Apr 08, 2013 7:38 am
by T-Bone
Exactly. Editing the plist things are kind of important, because of you don't fix that then all .love files will be associated with your game. And that's trickier to script than building for Windows.