From f50258ee68885ddc344d7727877bb7b0a4f39d0a Mon Sep 17 00:00:00 2001 From: Andrew Simachev Date: Tue, 25 Feb 2025 21:00:44 +0100 Subject: [PATCH] fix ci --- update-ci.sh | 2 +- update.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/update-ci.sh b/update-ci.sh index 79a2b2eabd..eabd948bac 100755 --- a/update-ci.sh +++ b/update-ci.sh @@ -10,7 +10,7 @@ platform=${3:-ubuntu-latest}; arch=$4; folder="build"; -if [ "$platform" = "ubuntu-latest" || "$platform" = "ubuntu-22.04" ]; then +if [ "$platform" = "ubuntu-latest" ] || [ "$platform" = "ubuntu-22.04" ]; then arch="linux-$arch"; folder="$arch"; elif [ "$platform" = "macos-13" ]; then diff --git a/update.sh b/update.sh index 5c73c0100f..9d479dd23d 100755 --- a/update.sh +++ b/update.sh @@ -8,7 +8,7 @@ platform=${1:-ubuntu-latest}; arch=$2; folder="build"; -if [ "$platform" = "ubuntu-latest" || "$platform" = "ubuntu-22.04" ]; then +if [ "$platform" = "ubuntu-latest" ] || [ "$platform" = "ubuntu-22.04" ]; then arch="linux-$arch"; folder="$arch"; elif [ "$platform" = "macos-13" ] || [ "$platform" = "macos-latest" ]; then @@ -20,6 +20,7 @@ elif [ "$platform" = "windows-latest" ]; then FILE="addon.zip" fi; +echo "Platform: $platform" echo "Arch: $arch" echo "Folder: $folder" echo "" @@ -36,7 +37,7 @@ version=`curl -H "Accept: application/vnd.github.v3+json" -sL https://$GITHUB/re tag=`echo $version | jq ".tag_name"` asset_id=`echo $version | jq ".assets | map(select(.name | match(\"js_v[0-9]+.[0-9]+.[0-9]+([^_]+)?_$arch\";\"i\")))[0].id"` -if [ "$asset_id" = "" ]; then +if [ "$asset_id" = null ]; then echo "ERROR: version not found" exit 1 fi;