vice city online: the bare online core

This commit is contained in:
CRTkafa 2026-11-17 14:27:34 +07:00
commit 2f98475c19
256 changed files with 144219 additions and 0 deletions

8
tools/stamp-index.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# Writes build/index.stamped.html: the page with the version of the engine in web/dist.
set -e
V=$(cat web/dist/revc.js web/dist/revc.wasm web/dist/revc-jspi.js web/dist/revc-jspi.wasm | sha256sum | cut -c1-12)
# Apache prefers these over the originals, so they must always match: upload them with the engine.
for f in revc.js revc.wasm revc-jspi.js revc-jspi.wasm; do brotli -f -q 11 -k "web/dist/$f" -o "web/dist/$f.br"; done
sed "s/__ENGINE_V__/$V/g" web/shell/index.html > build/index.stamped.html
echo "$V"