Page 1 of 1

LoveComp [1.0] Auto-Package Your Games for Distribution

Posted: Fri Jul 11, 2014 1:05 am
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

Re: LoveComp [1.0]

Posted: Fri Jul 11, 2014 2:21 am
by undef
Nice!
Funny, I was just thinking that it would be nice to have this today. :)
Thank you very much!

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

Posted: Fri Jul 11, 2014 4:24 pm
by Jack5500
What about spaces in the path?

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

Posted: Fri Jul 11, 2014 9:22 pm
by Rock48
Jack5500 wrote:What about spaces in the path?
If you put quotes around the path, it should work.

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

Posted: Sat Jul 12, 2014 1:09 am
by Enterprise2001
Awesome, but any chance of Linux support?

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

Posted: Sat Jul 12, 2014 2:53 am
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.

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

Posted: Sat Jul 12, 2014 3:39 pm
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 :)

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

Posted: Sun Jul 13, 2014 5:27 am
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.

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

Posted: Sun Jul 13, 2014 7:59 pm
by Jack5500
Rock48 wrote:
Jack5500 wrote:What about spaces in the path?
If you put quotes around the path, it should work.
Image

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

Posted: Mon Jul 14, 2014 5:35 am
by Jasoco
Try using double quotes. Not apostrophes. This --> "