Making an Exe out of a .love file

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
gigimoi
Prole
Posts: 7
Joined: Wed Jul 25, 2012 9:27 pm

Making an Exe out of a .love file

Post 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?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Making an Exe out of a .love file

Post 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.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
gigimoi
Prole
Posts: 7
Joined: Wed Jul 25, 2012 9:27 pm

Re: Making an Exe out of a .love file

Post by gigimoi »

Huh, that's an odd way to handle it, but certainty correct and tested.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Making an Exe out of a .love file

Post by T-Bone »

It's actually a very nice and easy way to do it. Too bad building for Mac isn't as easy.
User avatar
slime
Solid Snayke
Posts: 3159
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Making an Exe out of a .love file

Post 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.
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: Making an Exe out of a .love file

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 2 guests