abstreet/release/windows.sh
2019-12-12 19:04:14 -08:00

26 lines
471 B
Bash
Executable File

#!/bin/bash
# Call from project root directory: ./release/windows.sh
set -e
version=$1;
if [ "$version" == "" ]; then
echo Gimme version number
exit 1
fi
OUT="abstreet_windows_$version"
source release/common.sh
common_release $OUT
cp release/play_abstreet.bat $OUT
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
cp -Rv game/assets $OUT/game
zip -r $OUT $OUT
rm -rf $OUT