preview: build-dev-preview.sh, the dev demo build recipe (publishing is the shared script's) #79

Merged
void merged 2 commits from void/publish-dev-preview into dev 2026-11-10 18:19:09 +00:00

9
scripts/build-dev-preview.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Build this checkout as the offline demo for the standing dev preview: base /void/rat-dev/, the pretend
# homeserver, scene tier $TIER (default full). Output: ./dist, ready for the shared publisher
# (gamecult-ops scripts/publish-mind-preview.sh dist rat-dev), which owns publishing. Publishes nothing.
set -euo pipefail
cd "$(dirname "$0")/.."
node scripts/sync-poses.mjs >/dev/null
VITE_PREVIEW_DEMO=1 CINNY_BASE=/void/rat-dev/ NODE_OPTIONS=--max_old_space_size=4096 nice -n 10 npx vite build
node scripts/preview-config.js "${TIER:-full}" --demo