Add a script to bundle together all assets for actdev. https://github.com/cyipt/actdev/issues/28

This commit is contained in:
Dustin Carlino 2021-02-08 11:45:07 -08:00
parent de1084648c
commit f9ad3b2808

22
release/deploy_actdev.sh Executable file
View File

@ -0,0 +1,22 @@
#!/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
#wasm-pack build --release --target web -- --no-default-features --features wasm,map_gui/wasm_s3
# 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