abstreet/release/finalize.sh

34 lines
748 B
Bash
Executable File

#!/bin/bash
# Run from ~/Downloads. Work around Github Actions annoyances.
set -e
VERSION=$1
if [ "$VERSION" == "" ]; then
echo You forgot to pass version
exit 1
fi
echo y | unzip abst_linux.zip
unzip abst_linux.zip
rm -f abst_linux.zip
rm -f abst_linux/experiment
mv abst_linux abstreet_linux_$VERSION
echo y | unzip abst_mac.zip
unzip abst_mac.zip
rm -f abst_mac.zip
rm -f abst_mac/experiment
mv abst_mac abstreet_mac_$VERSION
mkdir abstreet_windows_$VERSION
cd abstreet_windows_$VERSION
unzip ../abst_windows.zip
cd ..
rm -f abst_windows.zip
rm -f abst_windows/experiment
zip -r abstreet_linux_$VERSION abstreet_linux_$VERSION
zip -r abstreet_mac_$VERSION abstreet_mac_$VERSION
zip -r abstreet_windows_$VERSION abstreet_windows_$VERSION