2019-04-10 22:48:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Call from project root directory: ./release/linux.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
OUT=abstreet_linux
|
2019-05-15 19:47:42 +03:00
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
OUT=abstreet_mac
|
|
|
|
fi
|
|
|
|
|
2019-04-10 22:48:46 +03:00
|
|
|
rm -rfv $OUT
|
|
|
|
mkdir $OUT
|
|
|
|
|
2019-04-22 03:45:53 +03:00
|
|
|
cp color_scheme docs/INSTRUCTIONS.md release/play_abstreet.sh $OUT
|
|
|
|
|
2019-04-10 22:48:46 +03:00
|
|
|
mkdir -p $OUT/data/maps
|
2019-05-17 01:17:14 +03:00
|
|
|
for map in 23rd ballard caphill downtown montlake; do
|
|
|
|
cp -v data/maps/$map.abst $OUT/data/maps/
|
|
|
|
done
|
2019-04-10 22:48:46 +03:00
|
|
|
|
|
|
|
mkdir $OUT/editor
|
|
|
|
cargo build --release --bin editor
|
|
|
|
cp target/release/editor $OUT/editor
|
|
|
|
|
|
|
|
zip -r $OUT $OUT
|
|
|
|
rm -rf $OUT
|