mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-20 12:51:57 +03:00
23 lines
376 B
Bash
Executable File
23 lines
376 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/game
|
|
cargo build --release --bin game
|
|
cp target/release/game $OUT/game
|
|
cp -Rv game/assets $OUT/game
|
|
|
|
zip -r $OUT $OUT
|
|
rm -rf $OUT
|