Skip to content

Commit

Permalink
Adjust the post-download script
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Jan 3, 2023
1 parent 7a250fe commit 66387ca
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions download.sh → post-tag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
VER=1.8.0
#!/bin/bash -e

VER=1.8.1-M1

rm -rf target || true
mkdir -p target
mkdir -p target/temp

BASE_URL=https://github.com/sbt/sbtn-dist/releases/download/v${VER}

Expand All @@ -14,15 +20,17 @@ LINUX_AARCH64_URL=$BASE_URL/sbtn-aarch64-pc-linux
# mkdir sbtn
# cd sbtn

mkdir x86_64-apple-darwin
mkdir x86_64-pc-linux
mkdir aarch64-pc-linux
mkdir x86_64-pc-win32
mkdir -p target/x86_64-apple-darwin
mkdir -p target/x86_64-pc-linux
mkdir -p target/aarch64-pc-linux
mkdir -p target/x86_64-pc-win32

curl -L $MAC_URL > target/x86_64-apple-darwin/sbtn
curl -L $LINUX_X86_64_URL > target/x86_64-pc-linux/sbtn
curl -L $LINUX_AARCH64_URL > target/aarch64-pc-linux/sbtn
curl -L $WINDOWS_URL > target/x86_64-pc-win32/sbtn.exe

curl -L $MAC_URL > x86_64-apple-darwin/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 target

cd x86_64-apple-darwin
chmod +x sbtn
Expand Down

0 comments on commit 66387ca

Please sign in to comment.