lux-cli-help-dist(1)

πŸ“¦ version 0.48.0, in nixpkgs unstable

✨ NAME ✨

hey bestie, welcome to the General Commands Manual page for lux-cli-help-dist(1). It’s the whole vibe for distributing a Lux project β€” literally what this command is here to do. πŸ’…

🌸 SYNOPSIS 🌸

lux-cli help dist [subcommands]

Okay so you call lux-cli help dist, and the [subcommands] part is optional. That’s the setup. 🫢

πŸ’– DESCRIPTION πŸ’–

lux-cli-help-dist is the β€œDistribute a Lux project” command. It’s giving ship-it energy, and all the actual details live in the subcommands below. No cap. ✨

πŸŽ€ SUBCOMMANDS πŸŽ€

  • lux-cli-help-dist-flat-archive(1) β€” ship an archive of a flat install tree which includes all dependencies. The resulting archive does not include the etc directory or build dependencies. And unlike a Lux tree, dependency conflicts are not supported/handled. πŸ™ˆ
  • lux-cli-help-dist-bin(1) β€” compile a Lux project, including its dependencies, into a single binary, which runs on systems that do not have Lua installed. Heads up: projects with native Lua modules are not single binaries β€” the modules are copied as shared libraries next to the output binary, and must be shipped alongside it. As with flat-archive, dependency conflicts are not supported/handled. πŸ’€

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

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

that’s the tea, bestie β€” dist Β· lux-cli-help-dist(1) 🫢✨

πŸ“¦ where this page comes from