luainstaller 2.0: Package Your .lua Scripts into Native Binaries
dev.to·9h·
Discuss: DEV
🏘Local Development
Preview
Report Post

There are two ways to package .lua scripts into binaries: the traditional srlua, which concatenates the Lua interpreter with the code, and the more modern luastatic, which performs real compilation. However, each of them has its own problems:

srlua

  • Can only package a single .lua file
  • Requires manual compilation

luastatic

  • Requires a build environment
  • Linux-only

luainstaller is an open-source Python library that wraps precompiled srlua and provides support for luastatic. It can be used as a command-line tool, a graphical application, or via a Python library API, and includes dependency analysis and a single-file packaging engine. It works out…

Similar Posts

Loading similar posts...