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)
| maker.getComment(path) |
| maker.newBuild(gamepath) |
| maker.setExtensions(...) |
| Arguments | |
|---|---|
| string | path Absolute path to some .love file |
| Returns | |
| string | Previously saved comment or nil |
| Arguments | |
|---|---|
| string | gamepath Absolute path to your project |
| Returns | |
| build | New build object |
| Arguments | |
|---|---|
| arguments | ... List of file extensions |
| build:allow(path) |
| build:erase(path) |
| build:ignore(path) |
| build:ignoreMatch(pattern) |
| build:isAllowed(path) |
| build:recursive(prefix, path, func) |
| build:save(dest, comment, mode) |
| build:scan() |
| build:write(path, content) |
| Arguments | |
|---|---|
| string | path Relative path |
| Arguments | |
|---|---|
| string | path File path |
| Arguments | |
|---|---|
| string | path Relative path |
| Arguments | |
|---|---|
| string | pattern Pattern matching expression |
| Arguments | |
|---|---|
| string | path Relative file path |
| Returns | |
| boolean | True if the file will be included |
| Arguments | |
|---|---|
| string | prefix Path prefix |
| string | path Relative path |
| function | func Callback function |
| Arguments | |
|---|---|
| string | dest Absolute path where the generated .love file is saved |
| string | comment (optional) String comment appended to the .love file |
| string | mode (optional) Processing mode: "none", "minify" or "dump" |
| Returns | |
| boolean | True if the .love file was saved successfully |
| number | Number of bytes written or an error message |
| Arguments | |
|---|---|
| string | path File path |
| string | content File contents |