From 57f53c647e36d0323cd66f697b496f14b8cf86a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Thu, 28 Oct 2021 13:27:08 +0200 Subject: [PATCH 1/2] Create zohoworkdrivetruesync.sh Hold this branch, it needs to be fully working, and the ARM version out of beta before its usable. --- fragments/labels/zohoworkdrivetruesync.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fragments/labels/zohoworkdrivetruesync.sh diff --git a/fragments/labels/zohoworkdrivetruesync.sh b/fragments/labels/zohoworkdrivetruesync.sh new file mode 100644 index 0000000..8413619 --- /dev/null +++ b/fragments/labels/zohoworkdrivetruesync.sh @@ -0,0 +1,13 @@ +zohoworkdrivetruesync) +# Using this label expects you to agree to these: +# License Areemant: https://www.zoho.com/workdrive/zohoworkdrive-license-agreement.html +# Privacy policy: https://www.zoho.com/privacy.html + name="Zoho WorkDrive TrueSync" + type="pkg" + if [[ $(arch) == "arm64" ]]; then + downloadURL="https://files-accl.zohopublic.com/public/tsbin/download/c12aff2fd2a830b382c3ff79cf57ff1d" # beta for M1 + elif [[ $(arch) == "i386" ]]; then + downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1) + fi + expectedTeamID="TZ824L8Y37" + ;; From 2c9085c0c50144ef2ce250cc13622741128a0ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Mon, 1 Nov 2021 10:38:20 +0100 Subject: [PATCH 2/2] Update zohoworkdrivetruesync.sh --- fragments/labels/zohoworkdrivetruesync.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fragments/labels/zohoworkdrivetruesync.sh b/fragments/labels/zohoworkdrivetruesync.sh index 8413619..aa0820e 100644 --- a/fragments/labels/zohoworkdrivetruesync.sh +++ b/fragments/labels/zohoworkdrivetruesync.sh @@ -4,10 +4,8 @@ zohoworkdrivetruesync) # Privacy policy: https://www.zoho.com/privacy.html name="Zoho WorkDrive TrueSync" type="pkg" - if [[ $(arch) == "arm64" ]]; then - downloadURL="https://files-accl.zohopublic.com/public/tsbin/download/c12aff2fd2a830b382c3ff79cf57ff1d" # beta for M1 - elif [[ $(arch) == "i386" ]]; then - downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1) - fi + #https://www.zoho.com/workdrive/truesync.html + #https://files-accl.zohopublic.com/public/tsbin/download/c488f53fb0fe339a8a3868a16d56ede6 + downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1) expectedTeamID="TZ824L8Y37" ;;