15 lines
367 B
Bash
Executable File
15 lines
367 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
"$ROOT_DIR/scripts/build-frontend.sh"
|
|
|
|
mkdir -p "$ROOT_DIR/bin"
|
|
cd "$ROOT_DIR"
|
|
go build -o "$ROOT_DIR/bin/supervisor" ./cmd/supervisor
|
|
|
|
echo "Built binary: $ROOT_DIR/bin/supervisor"
|
|
|
|
git restore --source=HEAD --worktree -- "$ROOT_DIR/internal/static/dist/index.html"
|