From 0691a8d5600dc7733ee64fe10691af1608f8ffb9 Mon Sep 17 00:00:00 2001 From: Lucas Cantor Date: Wed, 28 Apr 2021 09:41:00 -0700 Subject: [PATCH] Add TextExpander This is my first time contributing to Installomator, so my apologies in advance if I'm missing something, or doing something wrong. I believe this is the best option to find the latest appNewVersion number for TextExpander specifically, but I'm also happy to be proven otherwise. --- Installomator.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Installomator.sh b/Installomator.sh index 545a928..4281a93 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -2411,6 +2411,13 @@ telegram) appNewVersion=$( curl -fs https://macos.telegram.org | grep anchor | head -1 | sed -E 's/.*a>([0-9.]*) .*/\1/g' ) expectedTeamID="6N38VWS5BX" ;; +textexpander) + name="TextExpander" + type="zip" + downloadURL="https://textexpander.com/cgi-bin/redirect.pl?cmd=download&platform=osx" + appNewVersion=$( curl -fsIL "https://textexpander.com/cgi-bin/redirect.pl?cmd=download&platform=osx" | grep -i "^location" | awk '{print $2}' | tail -1 | cut -d "_" -f2 | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p' ) + expectedTeamID="7PKJ6G4DXL" + ;; textmate) name="TextMate" type="tbz"