From b28072fe8422f122569f20efa628b89ac1966254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Tue, 9 Nov 2021 15:43:29 +0100 Subject: [PATCH] Update typora.sh --- fragments/labels/typora.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fragments/labels/typora.sh b/fragments/labels/typora.sh index f44860d..380843f 100644 --- a/fragments/labels/typora.sh +++ b/fragments/labels/typora.sh @@ -1,7 +1,9 @@ typora) name="Typora" type="dmg" - downloadURL="https://www.typora.io/download/Typora.dmg" - appNewVersion="$(curl -fs "https://www.typora.io/dev_release.html" | grep -o -i "h4>[0-9.]*([0-9.]*)<\/h4.*/\1/')" + #downloadURL="https://www.typora.io/download/Typora.dmg" + downloadURL=$(curl -fs "https://www.typora.io/download/dev_update.xml" | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | cut -d '"' -f2) + #appNewVersion="$(curl -fs "https://www.typora.io/dev_release.html" | grep -o -i "h4>[0-9.]*([0-9.]*)<\/h4.*/\1/')" + appNewVersion=$(curl -fs "https://www.typora.io/download/dev_update.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | cut -d '"' -f2) expectedTeamID="9HWK5273G4" ;;