abstreet/release/deploy_web.sh

14 lines
446 B
Bash
Raw Normal View History

#!/bin/bash
set -e
cd game
wasm-pack build --release --target web -- --no-default-features --features wasm,wasm_s3
cd pkg
# Temporarily point to the Dropbox data, which is gzipped
rm -f system
ln -s ~/Dropbox/abstreet_data/data/system/ system
2020-11-01 21:30:03 +03:00
aws s3 sync --delete --exclude '*/osm_demo/*' . s3://abstreet
# Undo that symlink swap
git checkout system
echo "Have the appropriate amount of fun: http://abstreet.s3-website.us-east-2.amazonaws.com/"