diff options
Diffstat (limited to 'coin/provisioning/common/windows/install-msys2.ps1')
-rw-r--r-- | coin/provisioning/common/windows/install-msys2.ps1 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/coin/provisioning/common/windows/install-msys2.ps1 b/coin/provisioning/common/windows/install-msys2.ps1 index e88c8f07..0c4a9680 100644 --- a/coin/provisioning/common/windows/install-msys2.ps1 +++ b/coin/provisioning/common/windows/install-msys2.ps1 @@ -33,6 +33,8 @@ . "$PSScriptRoot\helpers.ps1" +# This script installs 7-Zip + $version = "20181211" $prog = "msys2" if (Is64BitWinHost) { @@ -56,17 +58,13 @@ $TargetLocation = "C:\Utils" Download $url_official $url_cache $PackagePath Verify-Checksum $PackagePath $sha1 Extract-tar_gz $PackagePath $TargetLocation -$bash = "$TargetLocation\$folder\usr\bin\bash" +$msys = "$TargetLocation\$folder\msys2_shell.cmd" # install perl -Run-Executable "$bash" "`"-l`" `"-c`" `"rm -rf /etc/pacman.d/gnupg;pacman-key --init;pacman-key --populate msys2;pacman -S --noconfirm perl make`"" -Run-Executable "$bash" "`"-l`" `"-c`" `"yes | cpan -i Text::Template Test::More`"" +Run-Executable "$msys" "`"-l`" `"-c`" `"rm -rf /etc/pacman.d/gnupg;pacman-key --init;pacman-key --populate msys2;pacman -S --noconfirm perl make`"" +Run-Executable "$msys" "`"-l`" `"-c`" `"cpan -i Text::Template Test::More`"" Write-Host "Cleaning $PackagePath.." Remove-Item -Recurse -Force -Path "$PackagePath" -# pacman-key launches gpg-agent and dirmngr in the background, see https://github.com/Alexpux/MSYS2-pacman/issues/56 -Stop-Process -Name "gpg-agent" -ErrorAction Ignore -Stop-Process -Name "dirmngr" -ErrorAction Ignore - -Write-Output "MSYS2 = $version" >> ~\versions.txt +Write-Output "7-Zip = $version" >> ~\versions.txt |