pmb887x-emu-web/build.sh
Konstantin Pereiaslov fc10ef24a6 build.sh ends with the deploy bundle
./build.sh built the engine into site/ but left dist/, what deploy/nginx
ships, as it was; deploying after a build sent the previous bundle. Its last
step is now scripts/bundle-dist.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xda8d7rfJjkFSmKVQtcBGh
2026-11-15 20:13:22 -06:00

17 lines
668 B
Bash
Executable file

#!/bin/bash
# One-shot build: emsdk + wasm deps + patched qemu-system-arm into site/,
# then the deploy bundle in dist/. Individual steps are cached; see scripts/*.sh.
set -euo pipefail
WEB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "== [1/3] toolchain + deps =="
bash "$WEB_DIR/scripts/build-deps.sh"
echo "== [2/3] qemu (wasm64, arm-softmmu, TCG backend -> site/dist) =="
bash "$WEB_DIR/scripts/build-qemu.sh"
echo "== [3/3] deploy bundle (site/ -> dist/) =="
bash "$WEB_DIR/scripts/bundle-dist.sh"
echo "serve with: node serve.mjs -> http://127.0.0.1:8080 (LAN/phone: https://<lan-ip>:6808)"
echo "deploy: dist/ (deploy/nginx/README.md)"