diff --git a/fragments/labels/smartgit.sh b/fragments/labels/smartgit.sh index 347c402..7abb0ad 100644 --- a/fragments/labels/smartgit.sh +++ b/fragments/labels/smartgit.sh @@ -1,7 +1,11 @@ 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")" + if [[ $(arch) == "arm64" ]]; then + downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | tail -1)" + elif [[ $(arch) == "i386" ]]; then + downloadURL="https://www.syntevo.com$(curl -fs "https://www.syntevo.com/smartgit/download/" | grep -i -o -E "/downloads/.*/smartgit.*\.dmg" | head -1)" + fi appNewVersion="$(curl -fs "https://www.syntevo.com/smartgit/changelog.txt" | grep -i -E "SmartGit *[0-9.]* *.*" | head -1 | awk '{print $2}')" expectedTeamID="PHMY45PTNW" ;;