From c2a04219cf41346bfa2f4871eda8915d43f38f09 Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Sat, 13 Apr 2019 11:49:28 +0100 Subject: fix powershell script download --- scripts/get.ps1 | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/get.ps1 b/scripts/get.ps1 index f81863994..7774e685a 100644 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -49,6 +49,7 @@ try{ } Write-Host "Start downloading https://github.com/xmake-io/xmake/releases/download/$version/xmake-$branch.exe .." try{ + [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" Invoke-Webrequest "https://github.com/xmake-io/xmake/releases/download/$version/xmake-$branch.exe" -OutFile "$outfile" }catch{ writeErrorTip 'Download failed!' -- cgit v1.3.1