mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-28 08:53:26 +03:00
d542e6675f
some interview questions / actual tasks for a UX person I'd love to hire. :)
27 lines
483 B
Bash
Executable File
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
|