From d97c84dd0c706076da3a59fc20c89050bcf0a6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Thu, 30 Sep 2021 08:55:52 +0200 Subject: [PATCH] calibre and vmwarehorizonclient --- fragments/labels/calibre.sh | 4 ++++ fragments/labels/vmwarehorizonclient.sh | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fragments/labels/calibre.sh b/fragments/labels/calibre.sh index fef2fb1..138605b 100644 --- a/fragments/labels/calibre.sh +++ b/fragments/labels/calibre.sh @@ -4,5 +4,9 @@ calibre) type="dmg" downloadURL="https://calibre-ebook.com/dist/osx" appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' ) + #Maybe change to GitHub for this title. Looks like 5.28.0 release is the first to also release a binary, so maybe see what the next release will be to decide if we should switch. + #downloadURL=$(downloadURLFromGit kovidgoyal calibre ) + #appNewVersion=$(versionFromGit kovidgoyal calibre ) + #archiveName="OS X dmg" expectedTeamID="NTY7FVCEKP" ;; diff --git a/fragments/labels/vmwarehorizonclient.sh b/fragments/labels/vmwarehorizonclient.sh index 7d1288f..428af60 100644 --- a/fragments/labels/vmwarehorizonclient.sh +++ b/fragments/labels/vmwarehorizonclient.sh @@ -1,8 +1,7 @@ vmwarehorizonclient) - # credit: Oh4sh0 https://github.com/Oh4sh0 name="VMware Horizon Client" type="dmg" - downloadURL=$(curl -fs "https://my.vmware.com/channel/public/api/v1.0/dlg/details?locale=en_US&downloadGroup=CART21FQ2_MAC_800&productId=1027&rPId=48989" | grep -o 'Url.*..dmg"' | cut -d '"' -f3) - appNewVersion=$(curl -fs "https://my.vmware.com/channel/public/api/v1.0/dlg/details?locale=en_US&downloadGroup=CART21FQ2_MAC_800&productId=1027&rPId=48989" | sed 's/.*-\(.*\)-.*/\1/') + downloadURL=$(curl -fsL "https://my.vmware.com/channel/public/api/v1.0/dlg/details?locale=en_US&downloadGroup=CART21FQ2_MAC_800&productId=1027&rPId=48989" | grep -o 'Url.*..dmg"' | cut -d '"' -f3) + appNewVersion=$(curl -fsL "https://my.vmware.com/channel/public/api/v1.0/dlg/details?locale=en_US&downloadGroup=CART21FQ2_MAC_800&productId=1027&rPId=48989" | sed 's/.*-\(.*\)-.*/\1/') expectedTeamID="EG7KH642X6" ;;