Skip to content

Commit

Permalink
Merge pull request #2 from mkurz/aarch64-download-script
Browse files Browse the repository at this point in the history
Add aarch64 to download script
  • Loading branch information
eed3si9n authored Jan 3, 2023
2 parents f415859 + 25e7a73 commit 7a250fe
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions download.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
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
# cd sbtn

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
Expand All @@ -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 ../
Expand Down

0 comments on commit 7a250fe

Please sign in to comment.