#!/bin/bash
# Canonical build step — ALWAYS refresh the packaged binary from source before
# publishing, so the tarball never ships a stale bin/adom-tts (the 1.4.1-shipped-
# 1.0.5 bug). release.sh runs this; run it manually before any `adompkg publish`.
set -euo pipefail
cd "$(dirname "$0")"
cargo build --release
install -m 0755 target/release/adom-tts bin/adom-tts
echo "build.sh: bin/adom-tts refreshed → $(ADOM_TTS_NO_HINTS=1 ./bin/adom-tts --version)"