abstreet/release/deploy_web.sh
Dustin Carlino c210b0a1bd new release
2020-11-01 10:30:03 -08:00

14 lines
446 B
Bash
Executable File

#!/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
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/"