From f2921ec7e7d71b5f7945e5812d2270a9ac9f0ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Fri, 11 Jun 2021 09:21:48 +0200 Subject: [PATCH] label githubdesktop Now for arm and intel versions --- Installomator.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Installomator.sh b/Installomator.sh index 579f7c8..34ecb54 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1522,7 +1522,11 @@ gimp) githubdesktop) name="GitHub Desktop" type="zip" - downloadURL="https://central.github.com/deployments/desktop/desktop/latest/darwin" + if [[ $(arch) == "arm64" ]]; then + downloadURL="https://central.github.com/deployments/desktop/desktop/latest/darwin-arm64" + elif [[ $(arch) == "i386" ]]; then + downloadURL="https://central.github.com/deployments/desktop/desktop/latest/darwin" + fi appNewVersion=$(curl -fsL https://central.github.com/deployments/desktop/desktop/changelog.json | awk -F '{' '/"version"/ { print $2 }' | sed -E 's/.*,\"version\":\"([0-9.]*)\".*/\1/g') expectedTeamID="VEKTX9H2N7" ;;