2019-07-01 15:55:46 +00:00
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
|
|
|
|
$msvc_2017_url = 'https://aka.ms/vs/15/release/vs_buildtools.exe'
|
2020-06-02 08:33:47 +00:00
|
|
|
$msys2_url = 'https://github.com/msys2/msys2-installer/releases/download/2020-05-22/msys2-base-x86_64-20200522.tar.xz'
|
2019-12-13 12:34:38 +00:00
|
|
|
$msys_mingw_get_url = 'https://dotsrc.dl.osdn.net/osdn/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz'
|
2019-07-01 15:55:46 +00:00
|
|
|
|
|
|
|
Write-Host "Installing VisualStudio"
|
|
|
|
Invoke-WebRequest -Uri $msvc_2017_url -OutFile C:\vs_buildtools.exe
|
|
|
|
Start-Process C:\vs_buildtools.exe -ArgumentList '--quiet --wait --norestart --nocache --installPath C:\BuildTools --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended' -Wait
|
|
|
|
Remove-Item C:\vs_buildtools.exe -Force
|
|
|
|
|
2019-12-13 00:53:42 +00:00
|
|
|
Write-Host "Downloading and extracting mingw-get for MSYS"
|
|
|
|
Invoke-WebRequest -Uri $msys_mingw_get_url -OutFile C:\mingw-get.tar.xz
|
2020-01-21 13:27:19 +00:00
|
|
|
7z e C:\mingw-get.tar.xz -o"C:\\"
|
|
|
|
7z x C:\mingw-get.tar -o"C:\\MinGW"
|
2019-12-13 00:53:42 +00:00
|
|
|
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
|
|
|
|
|
2019-12-13 00:30:04 +00:00
|
|
|
Write-Host "Installing MSYS2 into C:/msys64"
|
|
|
|
Invoke-WebRequest -Uri $msys2_url -OutFile C:\msys2-x86_64.tar.xz
|
2020-01-21 13:27:19 +00:00
|
|
|
7z e C:\msys2-x86_64.tar.xz -o"C:\\"
|
|
|
|
7z x C:\msys2-x86_64.tar -o"C:\\"
|
2019-07-01 15:55:46 +00:00
|
|
|
Remove-Item C:\msys2-x86_64.tar.xz -Force
|
|
|
|
Remove-Item C:\msys2-x86_64.tar -Force
|
|
|
|
|
2019-12-02 16:23:27 +00:00
|
|
|
Write-Host "Installing Meson"
|
2019-11-22 13:44:56 +00:00
|
|
|
pip install meson
|
2019-12-02 16:23:27 +00:00
|
|
|
|
|
|
|
Write-Host "Complete"
|