Page 1 of 1

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

Posted: Sun Dec 17, 2017 5:14 am
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.

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

Posted: Tue Dec 19, 2017 2:52 pm
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.

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

Posted: Tue Dec 19, 2017 6:27 pm
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).