diff --git a/fragments/labels/loom.sh b/fragments/labels/loom.sh index a1d6190..1ed4266 100644 --- a/fragments/labels/loom.sh +++ b/fragments/labels/loom.sh @@ -2,7 +2,11 @@ loom) # credit: Lance Stephens (@pythoninthegrass on MacAdmins Slack) name="Loom" type="dmg" - downloadURL=https://cdn.loom.com/desktop-packages/$(curl -fs https://s3-us-west-2.amazonaws.com/loom.desktop.packages/loom-inc-production/desktop-packages/latest-mac.yml | awk '/url/ && /dmg/ {print $3}' | head -1) + if [[ $(arch) == "arm64" ]]; then + downloadURL=https://cdn.loom.com/desktop-packages/$(curl -fs https://s3-us-west-2.amazonaws.com/loom.desktop.packages/loom-inc-production/desktop-packages/latest-mac.yml | awk '/url/ && /arm64/ && /dmg/ {print $3}' | head -1) + elif [[ $(arch) == "i386" ]]; then + downloadURL=https://cdn.loom.com/desktop-packages/$(curl -fs https://s3-us-west-2.amazonaws.com/loom.desktop.packages/loom-inc-production/desktop-packages/latest-mac.yml | awk '/url/ && /dmg/ {print $3}' | head -1) + fi appNewVersion=$(curl -fs https://s3-us-west-2.amazonaws.com/loom.desktop.packages/loom-inc-production/desktop-packages/latest-mac.yml | awk '/version/ {print $2}' ) expectedTeamID="QGD2ZPXZZG" ;;