2019-04-10 22:48:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Call from project root directory: ./release/windows.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-12-13 06:04:14 +03:00
|
|
|
version=$1;
|
|
|
|
if [ "$version" == "" ]; then
|
|
|
|
echo Gimme version number
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
OUT="abstreet_windows_$version"
|
2019-04-10 22:48:46 +03:00
|
|
|
|
2019-08-05 23:08:49 +03:00
|
|
|
source release/common.sh
|
|
|
|
common_release $OUT
|
2019-04-22 03:45:53 +03:00
|
|
|
|
2019-08-05 23:08:49 +03:00
|
|
|
cp release/play_abstreet.bat $OUT
|
2019-05-27 04:22:46 +03:00
|
|
|
|
2019-09-07 23:09:09 +03:00
|
|
|
mkdir $OUT/game
|
|
|
|
cross build --release --target x86_64-pc-windows-gnu --bin game
|
|
|
|
cp target/x86_64-pc-windows-gnu/release/game.exe $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
|