abstreet/release/linux_or_mac.sh
2019-08-05 13:13:29 -07:00

22 lines
355 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
source release/common.sh
common_release $OUT
cp release/play_abstreet.sh $OUT
mkdir $OUT/editor
cargo build --release --bin editor
cp target/release/editor $OUT/editor
zip -r $OUT $OUT
rm -rf $OUT