lx dist - distribute your Lua projects as archives or standalone binaries

Posted on July 8, 2026

Lux is the Lua package manager I’ve been working on with vhyrro and ntbbloodbath – think uv or cargo, but for Lua. A question I’ve heard occasionally: “I built something with Lux, now how do I give it to someone who doesn’t use it (or luarocks)?” Starting with 0.35.2, there are two answers to that question.

lx dist flat-archive

Bundle your project and all its runtime dependencies into a single .zip. No need for the recipient to install Lux or set up dependency trees.

lx dist flat-archive

Pick a compression method if the default isn’t what you need:

lx dist flat-archive --compression-method zstd

lx dist bin

Compile your project into a standalone executable. Based on luastatic, but it also works on Windows (MSVC) – not just Linux and macOS (yes, I once again resorted to printf debugging via GitHub Actions for Windows). You can link native C modules on Linux too, if your project needs them.

lx dist bin

Learn more