From fa7347b7a07fecfcb24843702b6a8eb7564c4720 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Thu, 18 Mar 2021 09:41:47 +0300 Subject: [PATCH] Change approach to get the version from manifest (#2966) --- images/macos/provision/core/vsmac.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/macos/provision/core/vsmac.sh b/images/macos/provision/core/vsmac.sh index 3ee60852f..f4f914566 100644 --- a/images/macos/provision/core/vsmac.sh +++ b/images/macos/provision/core/vsmac.sh @@ -4,7 +4,7 @@ source ~/utils/xamarin-utils.sh VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac') if [ $VSMAC_VERSION == "latest" ]; then - VSMAC_VERSION=$(curl https://formulae.brew.sh/api/cask/visual-studio.json 2>/dev/null | jq .version | tr -d \") + VSMAC_VERSION=$(curl -L "http://aka.ms/manifest/stable" | jq -r ".items[] | select(.genericName==\"VisualStudioMac\").version") fi VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION)