implement six-skill gstack 2 runtime

This commit is contained in:
Sinabina
2026-07-17 11:08:14 -07:00
parent ce37bd36a9
commit b6572ebbb7
455 changed files with 108945 additions and 2622 deletions
+21 -3
View File
@@ -4,6 +4,16 @@ set -e
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
cd "$ROOT"
RUNTIME_ONLY=0
if [ "${1:-}" = "--runtime-only" ]; then
RUNTIME_ONLY=1
shift
fi
if [ "$#" -ne 0 ]; then
echo "Usage: scripts/build.sh [--runtime-only]" >&2
exit 2
fi
BUN_CMD="${BUN_CMD:-bun}"
BUN_CMD_WAS_COPIED=0
@@ -23,15 +33,23 @@ case "$(uname -s)" in
esac
"$BUN_CMD" run vendor:xterm
"$BUN_CMD" run gen:skill-docs --host all
if [ "$RUNTIME_ONLY" -eq 0 ]; then
"$BUN_CMD" run gen:gstack2
"$BUN_CMD" run gen:skill-docs --host all
fi
"$BUN_CMD" build --compile browse/src/cli.ts --outfile browse/dist/browse
"$BUN_CMD" build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse
"$BUN_CMD" build --compile design/src/cli.ts --outfile design/dist/design
"$BUN_CMD" build --compile make-pdf/src/cli.ts --outfile make-pdf/dist/pdf
"$BUN_CMD" build --compile bin/gstack-global-discover.ts --outfile bin/gstack-global-discover
if [ "$RUNTIME_ONLY" -eq 0 ]; then
"$BUN_CMD" build --compile bin/gstack-global-discover.ts --outfile bin/gstack-global-discover
fi
bash browse/scripts/build-node-server.sh
bash scripts/write-version-files.sh browse/dist/.version design/dist/.version make-pdf/dist/.version
chmod +x browse/dist/browse browse/dist/find-browse design/dist/design make-pdf/dist/pdf bin/gstack-global-discover
chmod +x browse/dist/browse browse/dist/find-browse design/dist/design make-pdf/dist/pdf
if [ "$RUNTIME_ONLY" -eq 0 ]; then
chmod +x bin/gstack-global-discover
fi
rm -f .*.bun-build
if [ "$BUN_CMD_WAS_COPIED" -eq 1 ]; then
rm -rf "$ROOT/.tmp-bun-bin"