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.main")
love.maker.setExtensions("lua", "txt", "png") -- include ONLY the selected formats
local build = love.maker.newBuild("C://path/to/project/")
build:ignore('/readme.txt') -- ignore specific files or folders
build:ignoreMatch('^/.git') -- ignore based on pattern matching
build:allow("/images/exception.jpg") -- whitelist a specific file
build:save(dest, "DEMO") -- absolute path and comment/stamp
local stamp = love.maker.getComment(dest) -- get the stamp
RamiLego4Game and his file zipping library
Minification by ReFreezed
Limitations
* Folders located outside of the currently active Love2D directory are copied to the AppData folder before processing
* Empty directories are not included in the generated file
* Does not fuse games
https://github.com/2dengine/love.maker