abstreet/release/linux.sh
Dustin Carlino d542e6675f filling out some instructions for the binary releases. also writing down
some interview questions / actual tasks for a UX person I'd love to
hire. :)
2019-04-12 12:11:26 -07:00

27 lines
483 B
Bash
Executable File

#!/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