lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


luastatic is a command line tool that builds a standalone executable
from a Lua program. The executable runs on systems that do not have Lua
installed because Lua is embedded alongside the program. Lua 5.1, 5.2,
5.3 and LuaJIT are supported. luastatic can be downloaded from GitHub[1]
or LuaRocks[2].

luastatic generates a C source file containing the source code of the
Lua program and calls to the Lua C API for required dependencies. The
program behaves as if it was run with the Lua interpreter.

See this post on Lua.space for an example use case:
http://lua.space/tools/build-a-standalone-executable

[1]https://github.com/ers35/luastatic
[2]http://luarocks.org/modules/ers35/luastatic