1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00
This commit is contained in:
Andrew Simachev 2025-02-25 21:00:44 +01:00
parent e1b370a492
commit f50258ee68
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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;