LoveComp [1.0] Auto-Package Your Games for Distribution

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Rock48
Prole
Posts: 4
Joined: Fri Jul 11, 2014 12:41 am

LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Rock48 »

So I noticed that the automatic distribution tool for love listed on the wiki has some awkward problems, such as requiring you to have lovedist in the the same directory as the game, only being able to output to either Win32 or Win64, not having the ability to make a *.app etc... So here I present: LoveComp, an automatic, cross platform (and much better IMO) love packager/compiler. Simply extract the zip archive to wherever you like, add the directory to your PATH (or don't) and profit!

LoveComp has the ability to create executables for Win32, Win64, and MacOSX. Usage:

Code: Select all

lovec input_dir output_dir cf_bundle_identifier cf_bundle_name
The input and output directories *should* be self explanatory, the output folder will be created if it doesn't exist. The cf_ stuff, are a little bit more tricky to explain. the cf_bundle_identifier is the MacOSX identifier for your program, it looks something like com.example.Game. The cf_bundle_name is at it's base, the name of your game, so: Game. An example of the command is as follows:

Code: Select all

C:\My Love Projects> lovec My_Cool_Game My_Cool_Game-Builds com.CoolGamesInc.CoolGame CoolGame
I hope you enjoy, I haven't been able to test the program on different platforms, or the Mac build created by it yet, so do tell me if it does/doesn't work. Written in Java- included are a batch script and shell script to properly run the program. Don't try running it from the jar, it has strange behavior.

The -z switch doesn't currently do anything, I'll add that tomorrow, too tired to do it now.

Download http://bit.ly/1qP9QCr
Last edited by Rock48 on Fri Jul 11, 2014 9:23 pm, edited 2 times in total.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: LoveComp [1.0]

Post by undef »

Nice!
Funny, I was just thinking that it would be nice to have this today. :)
Thank you very much!
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Jack5500 »

What about spaces in the path?
Rock48
Prole
Posts: 4
Joined: Fri Jul 11, 2014 12:41 am

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Rock48 »

Jack5500 wrote:What about spaces in the path?
If you put quotes around the path, it should work.
Enterprise2001
Prole
Posts: 1
Joined: Sat Jul 12, 2014 1:07 am

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Enterprise2001 »

Awesome, but any chance of Linux support?
Rock48
Prole
Posts: 4
Joined: Fri Jul 11, 2014 12:41 am

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Rock48 »

I don't believe there's a proper way to distribute LOVE games on Linux, I know there is a way, but it is discouraged. If you want me to see about putting it in, I'll give it a try.
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Rucikir »

I have written an usefull Bash script to do this. Perhaps you've already seen it. It is called love-release.sh. Github, Forum. It runs on every plateform with Bash support, and makes Windows 32 & 64 bits games, supports OS X and Linux too. It even has a support for icons, love version detection and more. Maybe you could take inspiration from it :)
User avatar
josefnpat
Inner party member
Posts: 955
Joined: Wed Oct 05, 2011 1:36 am
Location: your basement
Contact:

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by josefnpat »

Enterprise2001 wrote:Awesome, but any chance of Linux support?
Do you mean having LoveComp run on linux, or package stuff for linux?
Rock48 wrote:I don't believe there's a proper way to distribute LOVE games on Linux, I know there is a way, but it is discouraged. If you want me to see about putting it in, I'll give it a try.
Consider adding a way to generate deb/rpm/aur packages! (PM me for my bash deb script) Please don't attempt to make a binary distribution of love unless you are very very familiar with the inner workings of static libraries on linux, unless you are willing to put extensive research into it. If you are, I would be happy to share my months of findings.
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
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Jack5500 »

Rock48 wrote:
Jack5500 wrote:What about spaces in the path?
If you put quotes around the path, it should work.
Image
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LoveComp [1.0] Auto-Package Your Games for Distribution

Post by Jasoco »

Try using double quotes. Not apostrophes. This --> "
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 4 guests