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.
This commit is contained in:
Lucas Cantor
2021-04-28 09:41:00 -07:00
committed by GitHub
parent 24b8b435b6
commit 0691a8d560

View File

@@ -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"