mirror of
https://github.com/a-b-street/abstreet.git
synced 2025-01-05 04:52:16 +03:00
75281ed354
(also, fix release script again)
27 lines
558 B
Bash
Executable File
27 lines
558 B
Bash
Executable File
#!/bin/bash
|
|
# Called by Github Actions workflow
|
|
|
|
set -e
|
|
|
|
output=$1;
|
|
runner=$2;
|
|
binary=$3;
|
|
|
|
mkdir $output
|
|
curl -L -o release_data.zip https://www.dropbox.com/s/wzw7gucvccoxy66/release_data.zip?dl=0
|
|
cd $output
|
|
unzip ../release_data.zip
|
|
mv release_data data
|
|
cd ..
|
|
|
|
cp docs/INSTRUCTIONS.md $output
|
|
cp release/$runner $output
|
|
mkdir $output/game
|
|
cp $binary $output/game
|
|
cp -Rv game/assets $output/game
|
|
|
|
# TODO Github will double-zip this, but if we just pass the directory, then the
|
|
# chmod +x bits get lost
|
|
zip -r $output $output
|
|
rm -rf release_data.zip $output
|