lux-cli-help-dist-bin(1)

πŸ“¦ version 0.48.0, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is lux-cli-help-dist-bin(1) from the General Commands Manual β€” manual name folded in right here so we can get straight to the tea πŸ’…

This one compiles a Lux project, dependencies and all, into a single binary that runs on systems where Lua is not installed. ✨

🫢 lowkey important: if your project has native Lua modules, it is not a single-binary situation. Those modules are copied as shared libraries next to the output binary, and they must be shipped alongside it.

And same as flat-archive: dependency conflicts are not supported/handled. Not me pretending otherwise πŸ™ˆ

The entrypoint is specified via the [run] field in lux.toml, e.g.:

[run]
args = ["src/main.lua"]

✨ SYNOPSIS ✨

lux-cli help dist bin

πŸ’– DESCRIPTION πŸ’–

okay so the whole point of lux-cli help dist bin is: compile a Lux project, including its dependencies, into a single binary that runs on systems that do not have Lua installed. πŸŽ€

πŸ’€ if your project has native Lua modules, it is not a single binary: the modules are copied as shared libraries next to the output binary, and they must be shipped alongside it.

Same energy as flat-archive: dependency conflicts are not supported/handled. That's the caveat, bestie, no cap.

The entrypoint is specified via the [run] field in lux.toml, e.g.: 🌈

[run]
args = ["src/main.lua"]

footer stamp tea β˜•: it says bin and lux-cli-help-dist-bin(1) β€” that's the source/version corner of the page, and there's no separate date printed here, so I'm not inventing one, periodt. πŸ’œ

πŸ“¦ where this page comes from