mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 16:36:02 +03:00
a816a3d0be
cases.
27 lines
495 B
Bash
Executable File
27 lines
495 B
Bash
Executable File
#!/bin/bash
|
|
# Call from project root directory: ./release/linux.sh
|
|
|
|
set -e
|
|
|
|
OUT=abstreet_linux
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
OUT=abstreet_mac
|
|
fi
|
|
|
|
rm -rfv $OUT
|
|
mkdir $OUT
|
|
|
|
cp color_scheme docs/INSTRUCTIONS.md release/play_abstreet.sh $OUT
|
|
|
|
mkdir -p $OUT/data/maps
|
|
for map in 23rd ballard caphill downtown montlake; do
|
|
cp -v data/maps/$map.abst $OUT/data/maps/
|
|
done
|
|
|
|
mkdir $OUT/editor
|
|
cargo build --release --bin editor
|
|
cp target/release/editor $OUT/editor
|
|
|
|
zip -r $OUT $OUT
|
|
rm -rf $OUT
|