mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
e7ef042400
Get updates and newer ca-certificates in. Also update the way we install chocolatey Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1002>
26 lines
978 B
PowerShell
26 lines
978 B
PowerShell
Get-Date
|
|
Write-Host "Installing Chocolatey"
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force;
|
|
# Force TLS 1.2
|
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
Import-Module "$env:ProgramData\chocolatey\helpers\chocolateyProfile.psm1"
|
|
Update-SessionEnvironment
|
|
|
|
choco install -y vcredist140
|
|
$vc140_install = $?
|
|
|
|
Write-Host "Installing Chocolatey packages"
|
|
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
|
$cmake_install = $?
|
|
|
|
choco install -y git --params "/NoAutoCrlf /NoCredentialManager /NoShellHereIntegration /NoGuiHereIntegration /NoShellIntegration"
|
|
$git_install = $?
|
|
|
|
choco install -y python3 git-lfs 7zip
|
|
$rest_installs = $?
|
|
|
|
if (!($vc140_install -and $cmake_install -and $git_install -and $rest_installs)) {
|
|
Write-Host "Failed to install some dependencies from choco"
|
|
Exit 1
|
|
}
|