diff --git a/download.sh b/download.sh index d0e6898..cf8630f 100755 --- a/download.sh +++ b/download.sh @@ -1,10 +1,14 @@ -VER=1.7.0-RC1 +VER=1.8.0 -MAC_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER}/sbtn-x86_64-apple-darwin +BASE_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER} -WINDOWS_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER}/sbtn-x86_64-pc-win32.exe +MAC_URL=$BASE_URL/sbtn-x86_64-apple-darwin -LINUX_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER}/sbtn-x86_64-pc-linux +WINDOWS_URL=$BASE_URL/sbtn-x86_64-pc-win32.exe + +LINUX_X86_64_URL=$BASE_URL/sbtn-x86_64-pc-linux + +LINUX_AARCH64_URL=$BASE_URL/sbtn-aarch64-pc-linux # cd /tmp # mkdir sbtn @@ -12,10 +16,12 @@ LINUX_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER}/sbtn-x86_64 mkdir x86_64-apple-darwin mkdir x86_64-pc-linux +mkdir aarch64-pc-linux mkdir x86_64-pc-win32 curl -L $MAC_URL > x86_64-apple-darwin/sbtn -curl -L $LINUX_URL > x86_64-pc-linux/sbtn +curl -L $LINUX_X86_64_URL > x86_64-pc-linux/sbtn +curl -L $LINUX_AARCH64_URL > aarch64-pc-linux/sbtn curl -L $WINDOWS_URL > x86_64-pc-win32/sbtn.exe cd x86_64-apple-darwin @@ -32,6 +38,13 @@ mv sbtn-x86_64-pc-linux-$VER.tar.gz ../ cd ../ gpg -u 0x642ac823 --detach-sign --armor sbtn-x86_64-pc-linux-$VER.tar.gz +cd aarch64-pc-linux +chmod +x sbtn +tar czvf sbtn-aarch64-pc-linux-$VER.tar.gz sbtn +mv sbtn-aarch64-pc-linux-$VER.tar.gz ../ +cd ../ +gpg -u 0x642ac823 --detach-sign --armor sbtn-aarch64-pc-linux-$VER.tar.gz + cd x86_64-pc-win32 zip sbtn-x86_64-pc-win32-$VER.zip sbtn.exe mv sbtn-x86_64-pc-win32-$VER.zip ../