From 7239ec454a591490154ffedb9716f1ce6871053a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Mon, 5 Sep 2022 10:04:33 +0200 Subject: [PATCH] Change `appNewVersion` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub tag contain “_” and not “.” so our function fails to get the right version, so isolating it out from the `downloadURL`. --- fragments/labels/xcreds.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fragments/labels/xcreds.sh b/fragments/labels/xcreds.sh index 4035dd4..5422f1f 100644 --- a/fragments/labels/xcreds.sh +++ b/fragments/labels/xcreds.sh @@ -1,11 +1,11 @@ xcreds) name="XCreds" - #type="pkgInZip" + type="pkg" #packageID="com.twocanoes.pkg.secureremoteaccess" #downloadURL=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -ioE "https://.*\.zip" | head -1) #appNewVersion=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -io "Current Version:.*" | sed -E 's/.*XCreds *([0-9.]*)<.*/\1/g') - type="pkg" downloadURL="$(downloadURLFromGit twocanoes xcreds)" - appNewVersion="$(versionFromGit twocanoes xcreds)" + #appNewVersion="$(versionFromGit twocanoes xcreds)" # GitHub tag contain “_” and not “.” so our function fails to get the right version + appNewVersion=$(echo "$downloadURL" | sed -E 's/.*XCreds_.*-([0-9.]*)\.pkg/\1/') expectedTeamID="UXP6YEHSPW" ;;