#!/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" # build.sh looks for a page shell beside the baked dir; ours lives at the repo # root so the cases/ shelf stays nothing but games. cp web/index.html "$ENGINE/web/dist/index.html" echo "page shell: web/index.html" echo "preview locally: cd $ENGINE/web/dist && python3 -m http.server 8899"