$ luarocks install luapak
Luapak is a command-line tool that offers a complete, all-in-one (yet modular) solution for building a standalone, zero-dependencies, possibly statically linked executable for any Lua program. It automatically resolves all required dependencies using LuaRocks and static analysis of requirements across Lua sources, generates C wrapper with embedded Lua sources, compiles it and links with Lua library and native extensions.
Versions
Dependencies
brieflz ~> 0.1.2
depgraph ~> 0.1
lua >= 5.1
LuaFileSystem ~> 1.6
lua-glob-pattern ~> 0.2
LuaRocks ~> 2.4
LuaSrcDiet ~> 0.3
optparse ~> 1.1