abstreet/release/finalize.sh

31 lines
664 B
Bash
Raw Normal View History

#!/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
mv abst_linux abstreet_linux_$VERSION
echo y | unzip abst_mac.zip
unzip abst_mac.zip
rm -f abst_mac.zip
mv abst_mac abstreet_mac_$VERSION
2020-06-22 03:49:52 +03:00
mkdir abstreet_windows_$VERSION
cd abstreet_windows_$VERSION
unzip ../abst_windows.zip
cd ..
2020-06-15 05:56:11 +03:00
rm -f abst_windows.zip
zip -r abstreet_linux_$VERSION abstreet_linux_$VERSION
zip -r abstreet_mac_$VERSION abstreet_mac_$VERSION
zip -r abstreet_windows_$VERSION abstreet_windows_$VERSION