1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-29 11:16:43 +00:00
borg/scripts/win-download-openssl.ps1

15 lines
525 B
PowerShell

# Download and extract the prebuilt openssl libraries provided by the python developers.
# The file is extracted to the .\external directory.
$url = "https://github.com/python/cpython-bin-deps/archive/openssl-bin-1.1.1c.zip"
$dest = "external"
$ErrorActionPreference = "Stop"
Write-Output "Downloading OpenSSL from cpython-bin-deps repository ..."
Invoke-WebRequest $url -OutFile openssl.zip
Write-Output "Extracting OpenSSL"
Expand-Archive -Path openssl.zip -DestinationPath $dest -Force
Remove-Item -Path openssl.zip