Got a pretty neat tool that can save you a ton of time if you make a lot of revisions to your game.
It's an automatic .LOVE builder implemented in Lua without requiring any external binaries.
Basic API
The lib allows you to customize your build and filter files by extensions, filename and even using pattern matching!
love.maker can output anywhere which is super useful if you are using other tools (like Android's APK tool or Valve's ContentBuilder)
Code: Select all
love.maker = require("maker")
love.maker.setExtensions('lua', 'png', 'txt') -- include only the specified extensions
local build = love.maker.newBuild("C://path/to/project/folder/") -- create from source folder
build:ignore('/readme.txt') -- exclude a specific file
build:ignoreMatch('^/%.git') -- exclude based on pattern matching
build:allow('/images/exception.jpg') -- whitelist a specific file
build:save('C://path/to/output/game.love', 'DEMO') -- build the .love project file
local comment = love.maker.getComment(dest)
print(comment)
RamiLego4Game and his file zipping library
Minification by ReFreezed
Un-Restricted File System by Ross Grams
Limitations
* Empty directories are not included in the generated file
* Does not fuse games
https://github.com/2dengine/love.maker