mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
Add a script to bundle together all assets for actdev. https://github.com/cyipt/actdev/issues/28
This commit is contained in:
parent
de1084648c
commit
f9ad3b2808
22
release/deploy_actdev.sh
Executable file
22
release/deploy_actdev.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user