mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
a1e332bf7e
* Install MSYS2 and VS with choco * Install Windows SDK 8.1 requied for libvpx * Improve build time of the windows image using as much RUN layers as possible Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1000>
29 lines
916 B
PowerShell
29 lines
916 B
PowerShell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
$msys_mingw_get_url = 'https://dotsrc.dl.osdn.net/osdn/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz'
|
|
|
|
Get-Date
|
|
Write-Host "Downloading and extracting mingw-get for MSYS"
|
|
Invoke-WebRequest -Uri $msys_mingw_get_url -OutFile C:\mingw-get.tar.xz
|
|
7z e C:\mingw-get.tar.xz -o"C:\\"
|
|
$res1 = $?
|
|
7z x C:\mingw-get.tar -o"C:\\MinGW"
|
|
$res2 = $?
|
|
|
|
if (!($res1 -and $res2)) {
|
|
Write-Host "Failed to extract mingw-get"
|
|
Exit 1
|
|
}
|
|
|
|
Remove-Item C:\mingw-get.tar.xz -Force
|
|
Remove-Item C:\mingw-get.tar -Force
|
|
|
|
Get-Date
|
|
Write-Host "Installing MSYS for Cerbero into C:/MinGW using mingw-get"
|
|
Start-Process -Wait C:\MinGW\bin\mingw-get.exe -ArgumentList 'install msys-base mingw32-base mingw-developer-toolkit'
|
|
if (!$?) {
|
|
Write-Host "Failed to install Msys for cerbero using MinGW"
|
|
Exit 1
|
|
}
|
|
|
|
Write-Host "MSYS/MinGW Install Complete"
|