app
AI Flow: Routing
Public Made by Adomby adom
The routing stage of AI Flow: routes a placed KiCad board connection by connection and reports what it made, what it could not and why. A guide, never a gate.
main
#!/bin/bash
# Build the Linux binary from source and put it where the page ships it (bin/). Anyone can run this.
set -e
HERE="$(cd "$(dirname "$0")" && pwd)"; cd "$HERE"
NAME=adom-aiflow-routing
cargo test --release
# The shipped binary carries no paths from the machine that built it.
RUSTFLAGS="--remap-path-prefix=$HOME/.cargo/registry/src=crates --remap-path-prefix=$HOME/.rustup=rustup --remap-path-prefix=$HERE=." cargo build --release
mkdir -p bin && cp "target/release/$NAME" "bin/$NAME"
ln -sf "$NAME" target/release/adom-route # the older name, for scripts that still use it
echo "OK: bin/$NAME ($(bin/$NAME --version))"