From 66387ca0d76d67c60c9ad6f7dc81f459d1fec704 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Mon, 2 Jan 2023 23:50:25 -0500 Subject: [PATCH] Adjust the post-download script --- download.sh => post-tag.sh | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) rename download.sh => post-tag.sh (70%) diff --git a/download.sh b/post-tag.sh similarity index 70% rename from download.sh rename to post-tag.sh index cf8630f..c91bda3 100755 --- a/download.sh +++ b/post-tag.sh @@ -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} @@ -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