2021-02-08 22:45:07 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# This is like deploy_web.sh, but just creates a directory for https://github.com/cyipt/actdev
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mkdir -p abst_actdev
|
|
|
|
cd game
|
2021-02-08 23:07:14 +03:00
|
|
|
wasm-pack build --release --target web -- --no-default-features --features wasm,map_gui/wasm_s3
|
2021-02-08 22:45:07 +03:00
|
|
|
# Temporarily remove the symlink to the data directory
|
|
|
|
rm -f pkg/system
|
|
|
|
# Expand symlinks
|
|
|
|
cp -Hv pkg/* ../abst_actdev
|
|
|
|
# Restore the symlink
|
|
|
|
git checkout pkg/system
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# Copy just what's needed from data
|
|
|
|
mkdir abst_actdev/system
|
|
|
|
for dir in cambridge cheshire; do
|
|
|
|
cp -Rv data/system/$dir abst_actdev/system
|
|
|
|
done
|
|
|
|
cp -Rv data/system/study_areas abst_actdev/system
|
2021-02-08 23:07:14 +03:00
|
|
|
gzip `find abst_actdev/ | grep bin | xargs`
|
|
|
|
|
|
|
|
echo "Go upload abst_actdev/ somewhere"
|