diff options
| author | ruki <[email protected]> | 2019-04-13 19:54:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-04-13 19:54:45 +0800 |
| commit | 2fb1ea89f795179cfd37dde437b294a79812d80d (patch) | |
| tree | bbad4c31b15a7a587ded46089f57ccdd49c4c5f0 | |
| parent | c13383c6069ef999a150c64b726ea4649ba0c198 (diff) | |
| parent | c2a04219cf41346bfa2f4871eda8915d43f38f09 (diff) | |
Merge pull request #395 from paul-reilly/ps-fix
fix powershell script download
| -rw-r--r-- | scripts/get.ps1 | 1 |
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!' |
