#!/bin/sh # Production build: the server and the ig CLI, both x86_64 Linux. # The frontend is rebuilt without PUBLIC_HOT_RELOAD first: dev builds set it, # and whatever is in frontend/dist at compile time is what gets embedded. set -e cd "$(dirname "$0")" (cd frontend && bun install --frozen-lockfile && bun run build) cargo build --release -p irongit --no-default-features cargo build --release -p ig --target x86_64-unknown-linux-musl echo "server: target/release/irongit" echo "cli: target/x86_64-unknown-linux-musl/release/ig"