2019-04-10 22:48:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
# Call from project root directory: ./release/linux.sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
OUT=abstreet_linux
|
|
|
|
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/
|
2019-04-12 21:38:25 +03:00
|
|
|
cat << EOF > $OUT/run_$map.sh
|
|
|
|
cd editor
|
|
|
|
./editor ../data/maps/$map.abst
|
|
|
|
EOF
|
|
|
|
chmod +x $OUT/run_$map.sh
|
2019-04-10 22:48:46 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
mkdir $OUT/editor
|
|
|
|
cargo build --release --bin editor
|
|
|
|
cp target/release/editor $OUT/editor
|
|
|
|
|
|
|
|
zip -r $OUT $OUT
|
|
|
|
rm -rf $OUT
|