How do people create their .loves and .exes? (Discussion)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
20047m
Prole
Posts: 13
Joined: Sun Nov 03, 2013 5:44 am

How do people create their .loves and .exes? (Discussion)

Post by 20047m »

First off, this is meant to be for discussion. I already know how to do these things, I am just curious how others go about this.

Anyways, yeah, if you haven't guessed already, I was just kind of wondering what methods people go about to creating their .love files and their game .exe's! I only know of a few right now, like these:
  1. The old fashion zip file creation and renaming technique -- Pain in the rear end!
  2. https://stackmachine.com/ -- Browser based, (free while in beta?)
  3. http://love2d.org/forums/viewtopic.php?f=5&t=75387 -- Love release bash script (Mac/Linux)
  4. "7z a -tzip releases/gamename.love * -xr!*.love -xr!.git" -- a .bat file with my method for creating love files, with 7zip installed. (Win)
What other methods do people use? I mean, I'm pretty sure there's at least a few more ways people generate love files and I'd löve to see what other implementations people have for it :)
Last edited by 20047m on Sat Feb 01, 2014 7:04 pm, edited 1 time in total.
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: How do people create their .loves and .exes? (Discussion

Post by josefnpat »

I run linux, so I have a set of scripts.

Here's an example in my latest LD entry:

This script will download the love binaries for windows and OS X
https://github.com/josefnpat/LD28/blob/master/setup.sh

This script will push git information into folders that can be used in game.
https://github.com/josefnpat/LD28/blob/ ... distgit.sh

This script builds the binaries that are to be distributed.
https://github.com/josefnpat/LD28/blob/master/build.sh

This script is for testing and development. I use it as softlinks don't play well when loading assets in love. This script basically zips up a folder in a temp file so that the softlinks are converted to normal files.
https://github.com/josefnpat/LD28/blob/master/run.sh
Missing Sentinel Software | Twitter

FORCIBLY IGNORED.
<leafo> when in doubt delete all of your code
<bartbes> git rm -r *
<bartbes> git commit -m "Fixed all bugs"
<bartbes> git push
User avatar
jcmoyer
Prole
Posts: 2
Joined: Sun Oct 06, 2013 8:05 am
Contact:

Re: How do people create their .loves and .exes? (Discussion

Post by jcmoyer »

My approach is similar to #4 except I have an intermediary step where I copy all the source code into a staging directory, then run it through luajit's bytecode compiler. Roughly:

Code: Select all

rm -rf $STAGE && mkdir $STAGE
# copy things to the staging directory
find . -name "*.lua" -not -path "$STAGE/*" -exec cp --parents {} $STAGE \;
# compile it
find $STAGE -name "*.lua" -exec $LUAC -b$DEBUG {} {} \;

rm $LOVEOUT
# zip it and merge assets in the main tree
7z a -tzip $LOVEOUT $STAGE/*
7z a -r -tzip -i!*.png -i!*.ogg $LOVEOUT
Then $LOVEOUT points to some .love file ready for further processing.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: How do people create their .loves and .exes? (Discussion

Post by Robin »

I just use method #1. I don't create .loves often enough for it to be annoying (and I almost never make .exes).
Help us help you: attach a .love.
User avatar
Daniel Eakins
Citizen
Posts: 99
Joined: Thu Jul 18, 2013 9:14 pm
Location: France

Re: How do people create their .loves and .exes? (Discussion

Post by Daniel Eakins »

I haven't completed a game project yet so I have yet to create an .exe file.
User avatar
Positive07
Party member
Posts: 1014
Joined: Sun Aug 12, 2012 4:34 pm
Location: Argentina

Re: How do people create their .loves and .exes? (Discussion

Post by Positive07 »

My own set of .bat scripts + Notepad ++ Run Script + Some other scripts that can handle the Android Manifest for Love-Android
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
User avatar
T-Bone
Inner party member
Posts: 1492
Joined: Thu Jun 09, 2011 9:03 am

Re: How do people create their .loves and .exes? (Discussion

Post by T-Bone »

I have a python script for building .loves. That came in handy with Hat Cat, since all levels were made in an in-game level editor, so the script also took the levels from the love.filesystem save folder and merged them into the game before zipping.

For building .exes, I have a .bat script. The .app I just manually copy-and-paste the .love into a boilerplate .app.
User avatar
HugoBDesigner
Party member
Posts: 403
Joined: Mon Feb 24, 2014 6:54 pm
Location: Above the Pocket Dimension
Contact:

Re: How do people create their .loves and .exes? (Discussion

Post by HugoBDesigner »

For .loves I copy any existing .love file, delete it's contents and place the new content there (and rename the file, of course).

For .exes I just run that script on LÖVE wiki on Windows' Command Prompt.
I feel like I should make something more advanced...
@HugoBDesigner - Twitter
HugoBDesigner - Blog
User avatar
riidom
Citizen
Posts: 74
Joined: Wed Jun 19, 2013 4:28 pm
Location: irgendwo an der Elbe
Contact:

Re: How do people create their .loves and .exes? (Discussion

Post by riidom »

I'm with Robin here, I do it so rarely, I choose the cheapest way.
I'd like to ask a follow-up question, though:
What are the reasons for creating .love's or .exe's so often, that there is a desire to automate it?
Or asked different, what are the occasions where you do it?
User avatar
Inny
Party member
Posts: 652
Joined: Fri Jan 30, 2009 3:41 am
Location: New York

Re: How do people create their .loves and .exes? (Discussion

Post by Inny »

The last time I made something it was with a unix style Makefile

Code: Select all

BUNDLE = artsyjumper.love
FILES = *.lua *.png sound design Makefile

love:
	zip -r $(BUNDLE) $(FILES)
That's right, my command was "make love"
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests