diff --git a/scripts/build-dev-preview.sh b/scripts/build-dev-preview.sh new file mode 100755 index 00000000..8f89dce8 --- /dev/null +++ b/scripts/build-dev-preview.sh @@ -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