Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

D. Installation Details

What the install commands run

install.sh and install.ps1 are small. They download the installer published with a release and run it. Without AIRSL_VERSION that is the latest release. With it, it is the release you named, and a version that was never released is refused with a link to the releases page.

Anything you pass along reaches the release's installer unchanged: its flags (--no-modify-path, --quiet), and its settings, such as AIRSL_CLI_INSTALL_DIR to put airsl in a folder other than ~/.local/bin.

$ curl -LsSf https://airsstack.github.io/airsl/install.sh | sh -s -- --no-modify-path
$ curl -LsSf https://airsstack.github.io/airsl/install.sh | AIRSL_CLI_INSTALL_DIR="$HOME/bin" sh

On Windows, set the variable in a PowerShell session, then run the installer from that session:

$env:AIRSL_VERSION = '<version>'; irm https://airsstack.github.io/airsl/install.ps1 | iex

The installer only runs when the session allows scripts. If it refuses, run Set-ExecutionPolicy RemoteSigned -Scope CurrentUser once, or use the powershell -ExecutionPolicy Bypass command from Installation.

Archives

Each release has one archive per platform. You can download one by hand instead of running the installer.

ArchiveRuns onNeeds at runtime
aarch64-apple-darwinmacOS on Apple Siliconnothing beyond macOS
x86_64-apple-darwinmacOS on Intelnothing beyond macOS
x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnuLinux with glibca glibc at least as new as the build machine's
x86_64-unknown-linux-musl, aarch64-unknown-linux-muslany Linux, including Alpinenothing; fully static
x86_64-pc-windows-msvcWindowsnothing beyond Windows

On Linux, the installer picks the glibc build when your system's glibc is new enough, and the musl build otherwise. Both run the same scripts in the same way.

Scripts outside airsl

The archives are for the airsl command. The native module that runs scripts in stock Lua is a separate LuaRocks package, covered in Running Scripts in Stock Lua.

Verifying a download

Every archive has a .sha256 file next to it. The installer checks the archive against it when sha256sum is available.

Every archive also carries a GitHub artifact attestation, a signed record that ties the file to this repository and the build that made it. That catches even an archive swapped together with its checksum file:

$ gh attestation verify airsl-cli-x86_64-unknown-linux-musl.tar.xz --repo airsstack/airsl

Before any release is published, every archive is unpacked on the platform it targets and made to run the example scripts, pass the example tests, and refuse what it was not granted. An archive that fails is not published.

Unsigned binaries

The binaries are not signed with an Apple or Windows code-signing certificate. That only matters for an archive downloaded through a web browser. On macOS, Gatekeeper refuses to run it until you clear the download mark with xattr -d com.apple.quarantine airsl. On Windows, SmartScreen warns the first time. The installers download archives themselves, so neither happens.

A shadowed airsl

If you installed airsl with cargo install before, ~/.cargo/bin/airsl may come first on your PATH. The installer warns when that happens. cargo uninstall airsl-cli removes the old copy.

The latest main

To build the newest unreleased code:

$ cargo install --git https://github.com/airsstack/airsl --locked airsl-cli