mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-18 11:51:42 +03:00
4f81f186af
* root element id from Settings, respect element size * Plumb assets root via settings * adapt crates to new wasm api * more FileLoader cleanup * use tsc bin from node_modules * avoid spurious unlink errors GNU Make considers the src/*/wasm_pkg targets as intermediate build files and attempted to `rm` them. We can stop that my marking them as `.PRECIOUS` https://www.gnu.org/software/make/manual/html_node/Special-Targets.html * `open` doesn't work on Linux We could do something with xdg-open, but meh, not worth having platform dependent logic for this. * fix typo, clarify instructions * make server compatible with older python install on linux * revert change - we dont want to include music on web the leading "-" means exclude a subdir of an included dir. * better wrap of comments * fix misfire in copy/pasted comment * update docs
26 lines
589 B
Bash
Executable File
26 lines
589 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -x
|
|
VERSION=dev
|
|
# S3_ROOT=s3://mjk_asdf/abstreet
|
|
S3_ROOT=s3://abstreet
|
|
|
|
set -e
|
|
|
|
cd web;
|
|
make release
|
|
aws s3 sync build/dist/ $S3_ROOT/$VERSION/
|
|
|
|
# Set the content type for .wasm files, to speed up how browsers load them
|
|
aws s3 cp \
|
|
$S3_ROOT/$VERSION \
|
|
$S3_ROOT/$VERSION \
|
|
--exclude '*' \
|
|
--include '*.wasm' \
|
|
--no-guess-mime-type \
|
|
--content-type="application/wasm" \
|
|
--metadata-directive="REPLACE" \
|
|
--recursive
|
|
|
|
echo "Have the appropriate amount of fun: http://abstreet.s3-website.us-east-2.amazonaws.com/$VERSION"
|