2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
2020-05-19 13:16:59 +03:00
|
|
|
## File: Install-Mingw64.ps1
|
2020-07-10 14:29:54 +03:00
|
|
|
## Desc: Install GNU tools for Windows
|
2019-12-13 09:48:00 -05:00
|
|
|
################################################################################
|
|
|
|
|
|
2020-04-17 10:53:30 +03:00
|
|
|
Choco-Install -PackageName mingw
|
2019-12-13 09:48:00 -05:00
|
|
|
|
|
|
|
|
# Make a copy of mingw32-make.exe to make.exe, which is a more discoverable name
|
|
|
|
|
# and so the same command line can be used on Windows as on macOS and Linux
|
2020-10-26 12:20:14 +03:00
|
|
|
$path = Get-Command mingw32-make.exe -CommandType All | Where-Object { $_.Path.Contains("C:\ProgramData\Chocolatey") } | Get-Item
|
2019-12-13 09:48:00 -05:00
|
|
|
Copy-Item -Path $path -Destination (Join-Path $path.Directory 'make.exe')
|
2020-07-10 14:29:54 +03:00
|
|
|
|
|
|
|
|
Invoke-PesterTests -TestFile "Tools" -TestName "Mingw64"
|