From f9ad3b28089cf6a8887fdff97963f00a299e712f Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 8 Feb 2021 11:45:07 -0800 Subject: [PATCH] Add a script to bundle together all assets for actdev. https://github.com/cyipt/actdev/issues/28 --- release/deploy_actdev.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 release/deploy_actdev.sh diff --git a/release/deploy_actdev.sh b/release/deploy_actdev.sh new file mode 100755 index 0000000000..ad3e1b75c8 --- /dev/null +++ b/release/deploy_actdev.sh @@ -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