docker/windows: Download and install MSYS for Cerbero
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 13 Dec 2019 00:53:42 +0000 (06:23 +0530)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 29 Jan 2020 17:39:46 +0000 (17:39 +0000)
docker/windows/install_toolchain.ps1

index f1ddb8398f92f94267d7543fb73c1accc482bf28..e9e00ae8ba6be5e30d382a10cd0d12ee182fe170 100644 (file)
@@ -6,6 +6,7 @@ $git_url = 'https://github.com/git-for-windows/git/releases/download/v2.24.1.win
 $zip_url = 'https://www.7-zip.org/a/7z1900-x64.exe'
 $cmake_url = 'https://github.com/Kitware/CMake/releases/download/v3.16.1/cmake-3.16.1-win64-x64.msi'
 $msys2_url = 'https://download.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20190524.tar.xz'
+$msys_mingw_get_url = 'https://osdn.net/projects/mingw/downloads/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz'
 
 Write-Host "Installing VisualStudio"
 Invoke-WebRequest -Uri $msvc_2017_url -OutFile C:\vs_buildtools.exe
@@ -34,6 +35,16 @@ Invoke-WebRequest -Uri $zip_url -OutFile C:\7z-x64.exe
 Start-Process C:\7z-x64.exe -ArgumentList '/S /D=C:\7zip\' -Wait
 Remove-Item C:\7z-x64.exe -Force
 
+Write-Host "Downloading and extracting mingw-get for MSYS"
+Invoke-WebRequest -Uri $msys_mingw_get_url -OutFile C:\mingw-get.tar.xz
+C:\7zip\7z e C:\mingw-get.tar.xz -o"C:\\"
+C:\7zip\7z x C:\mingw-get.tar -o"C:\\MinGW"
+Remove-Item C:\mingw-get.tar.xz -Force
+Remove-Item C:\mingw-get.tar -Force
+
+Write-Host "Installing MSYS for Cerbero into C:/MinGW using mingw-get"
+Start-Process C:\MinGW\bin\mingw-get.exe -ArgumentList 'install msys-base mingw32-base mingw-developer-toolkit' -Wait
+
 Write-Host "Installing MSYS2 into C:/msys64"
 Invoke-WebRequest -Uri $msys2_url -OutFile C:\msys2-x86_64.tar.xz
 C:\7zip\7z e C:\msys2-x86_64.tar.xz -o"C:\\"