[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $python_dl_url = 'https://www.python.org/ftp/python/3.7.4/python-3.7.4.exe' $msvc_2017_url = 'https://aka.ms/vs/15/release/vs_buildtools.exe' $git_url = 'https://github.com/git-for-windows/git/releases/download/v2.24.0.windows.2/MinGit-2.24.0.2-64-bit.zip' $zip_url = 'https://www.7-zip.org/a/7z1900-x64.exe' $msys_url = 'https://ayera.dl.sourceforge.net/project/msys2/Base/x86_64/msys2-base-x86_64-20180531.tar.xz' 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 Write-Host "Installing Python" Invoke-WebRequest -Uri $python_dl_url -OutFile C:\python3.exe Start-Process C:\python3.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait Remove-Item C:\python3.exe -Force Write-Host "Installing Git" Invoke-WebRequest -Uri $git_url -OutFile C:\mingit.zip Expand-Archive C:\mingit.zip -DestinationPath c:\mingit Remove-Item C:\mingit.zip -Force $env:PATH = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') + ';' + 'c:\mingit\cmd' [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) Write-Host "Installing 7zip" 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 "Installing MSYS2" Invoke-WebRequest -Uri $msys_url -OutFile C:\msys2-x86_64.tar.xz C:\7zip\7z e C:\msys2-x86_64.tar.xz -Wait C:\7zip\7z x C:\msys2-x86_64.tar -o"C:\\" Remove-Item C:\msys2-x86_64.tar.xz -Force Remove-Item C:\msys2-x86_64.tar -Force Remove-Item C:\7zip -Recurse -Force Write-Host "Installing Choco" iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) refreshenv Write-Host "Installing git-lfs" choco install -y git-lfs refreshenv Write-Host "Installing Meson" pip install meson Write-Host "Complete"