From b3251e95a88e6d6d4f4cedbd74a512e3785dc2f6 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev Date: Tue, 22 Sep 2020 15:21:08 +0700 Subject: [PATCH] vsmac added latest flag --- images/macos/provision/core/vsmac.sh | 3 +++ images/macos/toolsets/toolset-10.15.json | 2 +- images/macos/toolsets/toolset-11.0.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/images/macos/provision/core/vsmac.sh b/images/macos/provision/core/vsmac.sh index 9774e486..3be149e2 100644 --- a/images/macos/provision/core/vsmac.sh +++ b/images/macos/provision/core/vsmac.sh @@ -3,6 +3,9 @@ source ~/utils/utils.sh 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) VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION) TMPMOUNT=`/usr/bin/mktemp -d /tmp/visualstudio.XXXX` diff --git a/images/macos/toolsets/toolset-10.15.json b/images/macos/toolsets/toolset-10.15.json index e7b17989..39ee290f 100644 --- a/images/macos/toolsets/toolset-10.15.json +++ b/images/macos/toolsets/toolset-10.15.json @@ -6,7 +6,7 @@ ] }, "xamarin": { - "vsmac": "8.7.7.10", + "vsmac": "latest", "mono-versions": [ "6.12.0.93", "6.10.0.106", "6.8.0.123", "6.6.0.166", "6.4.0.208" ], diff --git a/images/macos/toolsets/toolset-11.0.json b/images/macos/toolsets/toolset-11.0.json index fa7a65a5..b4ca5c82 100644 --- a/images/macos/toolsets/toolset-11.0.json +++ b/images/macos/toolsets/toolset-11.0.json @@ -6,7 +6,7 @@ ] }, "xamarin": { - "vsmac": "8.7.7.10", + "vsmac": "latest", "mono-versions": [ "6.12.0.93" ],