abstreet/release/windows.sh
Dustin Carlino 0e298c756f make it a bit easier to jump to the time when trips are actually
starting. and prepping popdat for release
2019-05-26 21:31:44 -07:00

26 lines
566 B
Bash
Executable File

#!/bin/bash
# Call from project root directory: ./release/windows.sh
set -e
OUT=abstreet_windows
rm -rfv $OUT
mkdir $OUT
cp color_scheme docs/INSTRUCTIONS.md release/play_abstreet.bat $OUT
mkdir -p $OUT/data/maps
for map in 23rd ballard caphill downtown montlake; do
cp -v data/maps/$map.abst $OUT/data/maps/
done
mkdir -p $OUT/data/shapes
cp -v data/shapes/popdat $OUT/data/shapes
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