11 lines
279 B
Bash
Executable File
11 lines
279 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the single static Kontra binary.
|
|
# Requires: golang (go), templ CLI (~/go/bin/templ) on PATH.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
export PATH="$HOME/go/bin:$PATH"
|
|
templ generate
|
|
cd src
|
|
go build -o ../kontra-bin .
|
|
echo "built: $(pwd)/../kontra-bin"
|