Merge pull request #3116 from math-boy11/bitfocuscompanion-new-label

bitfocuscompanion-new-label
This commit is contained in:
Richard Glaser
2026-07-22 08:51:41 -06:00
committed by GitHub

View File

@@ -0,0 +1,12 @@
bitfocuscompanion)
name="Companion"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
downloadURL=$(curl -fsL "https://api.bitfocus.io/v1/product/companion/packages?branch=stable&limit=5" | grep -o 'https://cf-pub.bitfocus.io/[^"]*' | grep 'mac-arm64' | head -1)
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*-mac-arm64-([0-9.]+)-.*/\1/')
elif [[ $(arch) == "i386" ]]; then
downloadURL=$(curl -fsL "https://api.bitfocus.io/v1/product/companion/packages?branch=stable&limit=5" | grep -o 'https://cf-pub.bitfocus.io/[^"]*' | grep 'mac-x64' | head -1)
appNewVersion=$(echo "${downloadURL}" | sed -E 's/.*-mac-x64-([0-9.]+)-.*/\1/')
fi
expectedTeamID="FGQ2G3HYBT"
;;