.forge/releases/build/01_binary.sh 541 B 15 lines Raw
1 #!/bin/sh2 # Build the hu13 release artifact at the tagged commit.3 # Runs from the release worktree; VERSION and OUT come from f0rge.4 set -eu5 cargo build --release --locked6 mkdir -p "$OUT"7 tmp=$(mktemp -d)8 trap 'rm -rf "$tmp"' EXIT INT TERM9 stage="$tmp/hu13-${VERSION}"10 mkdir -p "$stage"11 cp target/release/hu13 "$stage/hu13"12 cp LICENSE "$stage/"13 cp .forge/wiki/README "$stage/README.md"14 tar --owner=gl0w --group=gl0w -czf "$OUT/hu13-${VERSION}-linux-x86_64.tar.gz" -C "$tmp" "hu13-${VERSION}"15 echo "built hu13-${VERSION}-linux-x86_64.tar.gz"