Build from source
Compile lianad, liana-cli and liana-gui from a signed release tag, with the Rust version the repository pins.
These commands build the same packages, with the same features, as the Liana
release builds. On Windows, you build liana-gui alone.
Pick the Rust version
Build with Rust 1.88.0, the version that rust-toolchain.toml pins in the
repository.
With rustup, you install no toolchain by hand. The first cargo command
inside the repository downloads 1.88.0 and uses it.
Build the release binaries
Install a C compiler and the system libraries
If you use Nix, its development shell replaces this step and the next one.
On Debian and Ubuntu:
sudo apt update
sudo apt install build-essential pkg-config libudev-dev libfontconfig1-devOn another distribution, install the same pieces: a C compiler, pkg-config,
and the development files of udev and fontconfig.
Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shThis pipes a script into your shell. To avoid that, install Rust 1.88.0 from the Rust project's signed standalone installers.
Get the source at a release tag
You need Git and GnuPG, with Edouard Paris's key imported into GnuPG. On macOS, install GnuPG. On Windows, install Git and GnuPG.
git clone https://github.com/wizardsardine/liana.git
cd liana
git checkout v16.0
git verify-tag v16.0The output must contain
Good signature from "Edouard Paris (reine des reines) <m@edouard.paris>".
Its Primary key fingerprint line must read
5B63 F3B9 7699 C7EE F3B0 40B1 9B7F 629A 53E7 7B83.
Do not build a tag that fails this check.
Compile the binaries
cargo build --release -p lianad
cargo build --release -p liana-gui --no-default-featuresThe first command builds lianad and liana-cli. The second builds
liana-gui without its developer debug overlay, as the release builds do.
Check the binaries
./target/release/lianad --version
./target/release/liana-gui --versionEach prints 16.0. liana-cli sits next to them in target/release/.
Build with Nix instead
The repository's Nix development shell carries Rust 1.88.0 and the Linux
libraries liana-gui needs, in place of steps 1 and 2. Get the source as in
step 3. If flakes are not on in your Nix, turn them on:
experimental-features = nix-command flakesThen, from the root of the repository:
nix develop
cargo build --release -p lianad
cargo build --release -p liana-gui --no-default-featuresMake a debug build
Leave out --release to build without optimizations. Cargo writes the result
to target/debug/:
cargo build -p lianadThe command builds lianad and liana-cli. The functional tests of
Run the tests use this build.