abstreet/release/linux.sh

27 lines
483 B
Bash
Raw Normal View History

#!/bin/bash
# Call from project root directory: ./release/linux.sh
set -e
OUT=abstreet_linux
rm -rfv $OUT
mkdir $OUT
cp color_scheme INSTRUCTIONS.md $OUT
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.sh
cd editor
./editor ../data/maps/$map.abst
EOF
chmod +x $OUT/run_$map.sh
done
mkdir $OUT/editor
cargo build --release --bin editor
cp target/release/editor $OUT/editor
zip -r $OUT $OUT
rm -rf $OUT