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-08-05 23:08:49 +03:00
|
|
|
source release/common.sh
|
|
|
|
common_release $OUT
|
2019-04-10 22:48:46 +03:00
|
|
|
|
2019-08-05 23:08:49 +03:00
|
|
|
cp release/play_abstreet.sh $OUT
|
2019-05-27 04:22:46 +03:00
|
|
|
|
2019-09-07 23:09:09 +03:00
|
|
|
mkdir $OUT/game
|
|
|
|
cargo build --release --bin game
|
|
|
|
cp target/release/game $OUT/game
|
2019-09-11 03:04:33 +03:00
|
|
|
cp -Rv game/assets $OUT/game
|
2019-04-10 22:48:46 +03:00
|
|
|
|
|
|
|
zip -r $OUT $OUT
|
|
|
|
rm -rf $OUT
|