1
1
mirror of https://github.com/a-b-street/abstreet.git synced 2024-12-29 17:34:58 +03:00
abstreet/release/finalize.sh

31 lines
664 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
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
mkdir abstreet_windows_$VERSION
cd abstreet_windows_$VERSION
unzip ../abst_windows.zip
cd ..
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