Updated build script

This commit is contained in:
Alexey Pustovalov
2021-10-08 17:08:55 +02:00
parent c5cc9be0ba
commit ea0698786f
2 changed files with 27 additions and 67 deletions

View File

@ -113,8 +113,9 @@ RUN Set-Location -Path $env:SystemDrive\.; `
7z -h | Select -first 2; `
`
Write-Host ('Downloading {0} ...' -f $env:MINGW_URL); `
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; `
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12; `
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }; `
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12; `
Invoke-WebRequest -OutFile $env:SystemDrive\mingw.7z -Uri $env:MINGW_URL; `
`
$sha256 = 'e8c65ddc655534b0330f66f7b480565621e8617cda9937d76ba141a22bf3b2fa'; `