Live: https://monsterrobot.games/games/policesquadquest/ web/index.html is our arcade page shell, matching the house style set by morpquest (boot splash, gold README tab, controls and the shelf explained). tools/webbuild.sh copies it over the engine's default after baking, so the cases/ shelf directory stays nothing but games. Hosting, established by reading the boxes rather than the docs: the deploy-map note pointing at /opt/dealgod/images/engine/ on the dealgod VPS is stale for this domain — that path now falls through to the arcade index. monsterrobot.games is actually served by forum-nginx on the GAMES VPS (humanjing@100.71.119.27) from a bind mount of /home/humanjing/monsterrobot.games, and games are plain directories under games/ picked up by try_files with no nginx change at all. Deployed exactly like /games/morpquest/, which is the same engine. Verified live: all four assets 200 with correct application/wasm content-type, our title (not the arcade fallback), the shelf renders, a case loads and plays, and the parser round-trips over the wire. Nothing existing was touched — fresh directory, no config edited, no cache purge needed for a new path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
649 B
Bash
Executable File
18 lines
649 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"
|
|
|
|
# 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"
|