From 04880d329ef577f97f6d324be54d12314de0d526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Fri, 27 Aug 2021 10:11:07 +0200 Subject: [PATCH] smartgit --- fragments/labels/slack.sh | 5 ----- fragments/labels/smartgit.sh | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 fragments/labels/smartgit.sh diff --git a/fragments/labels/slack.sh b/fragments/labels/slack.sh index c5068d6..4a73dba 100644 --- a/fragments/labels/slack.sh +++ b/fragments/labels/slack.sh @@ -2,11 +2,6 @@ slack) name="Slack" type="dmg" downloadURL="https://slack.com/ssb/download-osx-universal" # Universal -# if [[ $(arch) == "arm64" ]]; then -# downloadURL="https://slack.com/ssb/download-osx-silicon" -# elif [[ $(arch) == "i386" ]]; then -# downloadURL="https://slack.com/ssb/download-osx" -# fi appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | tr -d '\r\n' | sed -E 's/.*macos\/([0-9.]*)\/.*/\1/g' ) expectedTeamID="BQR82RBBHL" ;; diff --git a/fragments/labels/smartgit.sh b/fragments/labels/smartgit.sh new file mode 100644 index 0000000..347c402 --- /dev/null +++ b/fragments/labels/smartgit.sh @@ -0,0 +1,7 @@ +smartgit) + name="SmartGit" + type="dmg" + downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg")" + appNewVersion="$(curl -fs "https://www.syntevo.com/smartgit/changelog.txt" | grep -i -E "SmartGit *[0-9.]* *.*" | head -1 | awk '{print $2}')" + expectedTeamID="PHMY45PTNW" + ;;