policesquadquest/tools/webbuild.sh
type-two 9a64cfdf9f Add tools/webbuild.sh — bake the whole campaign to one wasm
MRPGI (827797a) can now bake a folder of game folders into a single browser
build with its title screen intact, so the entire sixteen-case campaign is one
2.1 MB wasm rather than sixteen separate builds. This wraps that for the repo.
Deploy stays a separate deliberate step.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-27 18:40:12 +10:00

13 lines
435 B
Bash
Executable File

#!/bin/sh
# Bake the whole campaign into one wasm and stage it in MRPGI/web/dist/.
# The engine boots into its title screen with all cases on the shelf.
#
# ./tools/webbuild.sh
#
# Deploy is a separate, deliberate step — see README "Web build".
set -e
ENGINE="${MRPGI:-$HOME/Documents/MRPGI}"
cd "$(dirname "$0")/.."
"$ENGINE/web/build.sh" "$(pwd)/cases"
echo "preview locally: cd $ENGINE/web/dist && python3 -m http.server 8899"