#!/bin/bash
# build.sh — compile the release binary and stage it into bin/ for packaging.
set -euo pipefail

DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"

cargo build --release
mkdir -p bin
install -m 0755 "target/release/adom-2dboard" "bin/adom-2dboard"
echo "staged bin/adom-2dboard ($(du -h bin/adom-2dboard | cut -f1))"
