lovepacker - Package MacOS, Windows, and .love files.

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
WetDesertRock
Citizen
Posts: 67
Joined: Fri Mar 07, 2014 8:16 pm

lovepacker - Package MacOS, Windows, and .love files.

Post by WetDesertRock »

Hey all!

I was never entirely satisfied with the existing tools (isn't that always the case though), so I decided to write my own.

I had some minimal requirements:
  • Output to each platform
  • Be able to luac each source file
  • Not require a mess of command line arguments (.json file config)
  • Easy install (at least for me)
Current features:
  • Builds complete and finalized MacOS, Windows, and .love files
  • LOVE file downloading and caching
  • Choose to package up luac compiled bytecode files
  • Config file to avoid endless command line arguments.
I have since then come up with lovepacker which is a python program that will fit these requirements for me.

The readme pretty much describes everything, but here is an example:
Game Code - Note the location of lovepacker.json


lovepacker.json (reduced to minimally needed keys):

Code: Select all

{
	"loveversion": "0.10.2",
	"gamename": "M",
	"identifier": "com.wetdesertrock.m_game"
}
Then to build it I just run:

Code: Select all

$ lovepacker .
and the files will appear in the ./build folder.


Let me know if there is any major features I'm missing (do note the "Possible Improvements" on the readme), or if you use it and encounter bugs.
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: lovepacker - Package MacOS, Windows, and .love files.

Post by Rucikir »

Hi! Great project ! Good luck from love-release :p
I find it a bit confusing that you can compile Lua with "luac" but you realy use "luajit" inside, because "luac" is a standard LuaPUC tool.
WetDesertRock
Citizen
Posts: 67
Joined: Fri Mar 07, 2014 8:16 pm

Re: lovepacker - Package MacOS, Windows, and .love files.

Post by WetDesertRock »

Yeah, thats very confusing. I think the naming is really just a byproduct of the development process. I think I started trying to use luac, then realized that luajit came with the tools I needed and would do it correctly (unlike luac which was slightly different).
Post Reply

Who is online

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