diff --git a/scripts/download.sh b/scripts/download.sh index 10c9831..896b20a 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -11,6 +11,9 @@ function main() { download "win-x64" download "linux-x64" download "linux-arm" + + extract "linux-x64.zip" + extract "linux-arm.zip" } function download(){ @@ -20,4 +23,11 @@ function download(){ curl -L -H "Authorization: Bearer $GITHUB_PAT" $link --output "$target_dir/$1.zip" } +function extract(){ + pushd "$target_dir" || exit + unzip "$1" + rm "$1" + popd || exit +} + main