mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 17:34:58 +03:00
21 lines
461 B
Bash
Executable File
21 lines
461 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
|
|
cp -v data/maps/montlake.abst data/maps/23rd.abst $OUT/data/maps/
|
|
|
|
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
|