main
John Lauer Source: adom-aiflow-jlcpcb 0.1.0 (Rust, MIT) 69dc77f 2d ago
#!/bin/bash
# Build the Linux binary from source and put it where the package ships it (bin/). Anyone can run this.
set -e
HERE="$(cd "$(dirname "$0")" && pwd)"; cd "$HERE"
NAME="$(sed -n 's/^name = "\(.*\)"/\1/p' Cargo.toml | head -1)"
cargo test --release
cargo build --release
mkdir -p bin && cp "target/release/$NAME" "bin/$NAME"
echo "OK: bin/$NAME ($(bin/$NAME --version))"