2019-04-10 22:48:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Call from project root directory: ./release/windows.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
OUT=abstreet_windows
|
|
|
|
rm -rfv $OUT
|
|
|
|
mkdir $OUT
|
|
|
|
|
2019-04-17 02:06:45 +03:00
|
|
|
cp color_scheme docs/INSTRUCTIONS.md $OUT
|
2019-04-10 22:48:46 +03:00
|
|
|
mkdir -p $OUT/data/maps
|
|
|
|
for map in montlake 23rd; do
|
|
|
|
cp -v data/maps/$map.abst $OUT/data/maps/
|
|
|
|
cat << EOF > $OUT/run_$map.bat
|
|
|
|
cd editor
|
|
|
|
editor.exe ..\\data\\maps\\$map.abst > ..\\output.txt
|
|
|
|
EOF
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir $OUT/editor
|
|
|
|
cross build --release --target x86_64-pc-windows-gnu --bin editor
|
|
|
|
cp target/x86_64-pc-windows-gnu/release/editor.exe $OUT/editor
|
|
|
|
|
|
|
|
zip -r $OUT $OUT
|
|
|
|
rm -rf $OUT
|