From 197e07ed9936cccfb4ecaf93738a0aa8d020913d Mon Sep 17 00:00:00 2001 From: pythoninthegrass <4097471+pythoninthegrass@users.noreply.github.com> Date: Wed, 19 Jan 2022 17:48:21 -0600 Subject: [PATCH] Added Tableau Public to --- fragments/labels/tableaupublic.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 fragments/labels/tableaupublic.sh diff --git a/fragments/labels/tableaupublic.sh b/fragments/labels/tableaupublic.sh new file mode 100644 index 0000000..c4bf7fd --- /dev/null +++ b/fragments/labels/tableaupublic.sh @@ -0,0 +1,8 @@ +tableaupublic) + name="Tableau Public" + type="pkgInDmg" + packageID="com.tableausoftware.tableaudesktop" + downloadURL=$(curl -fs https://www.tableau.com/downloads/public/mac | awk '/TableauPublic/' | xmllint --recover --html --xpath "//a/text()" -) + appNewVersion=$(/usr/bin/python -c "import re; url = '$downloadURL'; ver_regex = re.compile(r'([0-9]+(?:-[0-9]+)+)'); ver_regex.findall(url); dashes = ''.join(ver_regex.findall(url)); print(dashes.replace('-', '.'))") + expectedTeamID="QJ4XPRK37C" + ;;