summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-13 19:54:45 +0800
committerGitHub <[email protected]>2019-04-13 19:54:45 +0800
commit2fb1ea89f795179cfd37dde437b294a79812d80d (patch)
treebbad4c31b15a7a587ded46089f57ccdd49c4c5f0
parentc13383c6069ef999a150c64b726ea4649ba0c198 (diff)
parentc2a04219cf41346bfa2f4871eda8915d43f38f09 (diff)
Merge pull request #395 from paul-reilly/ps-fix
fix powershell script download
-rw-r--r--scripts/get.ps11
1 files changed, 1 insertions, 0 deletions
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!'