mirror of
https://github.com/Installomator/Installomator.git
synced 2026-08-04 02:40:39 +01:00
Merge pull request #3116 from math-boy11/bitfocuscompanion-new-label
bitfocuscompanion-new-label
This commit is contained in:
12
fragments/labels/bitfocuscompanion.sh
Normal file
12
fragments/labels/bitfocuscompanion.sh
Normal 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"
|
||||
;;
|
||||
Reference in New Issue
Block a user