Change approach to get the version from manifest (#2966)
This commit is contained in:
@@ -4,7 +4,7 @@ source ~/utils/xamarin-utils.sh
|
|||||||
|
|
||||||
VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac')
|
VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac')
|
||||||
if [ $VSMAC_VERSION == "latest" ]; then
|
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
|
fi
|
||||||
VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION)
|
VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user