Updated build process for Zabbix agent (windows)

This commit is contained in:
Alexey Pustovalov 2024-05-21 00:31:35 +09:00
parent d9fbeff23c
commit 6cd97fc2c4

View File

@ -146,13 +146,13 @@ RUN Set-Location -Path $env:SystemDrive\.; `
`
Write-Host 'Installing MSYS2...'; `
& $env:TEMP\msys2.sfx.exe -y -o"""$env:SystemDrive\""" | Out-Null; `
# sh --login -c 'pacman -Syuu --needed --noconfirm --ask=20'; `
# sh --login -c 'pacman -Syu --noconfirm'; `
# sh --login -c 'pacman --sync --quiet --noconfirm mingw-w64-ucrt-x86_64-cmake'; `
bash -lc 'pacman -Syuu --needed --noconfirm --ask=20'; `
bash -lc 'pacman -Syu --noconfirm'; `
bash -lc 'pacman --sync --quiet --noconfirm mingw-w64-ucrt-x86_64-cmake'; `
compact /c /i /s:$env:SystemDrive\msys64 | Out-Null; `
`
Write-Host 'Verifying install ("sh --version") ...'; `
sh.exe --version; `
Write-Host 'Verifying install ("bash --version") ...'; `
bash --version; `
`
Write-Host ('{0} - Visual Studio components installing...' -f $(Get-Date -format 'u')); `
cmd /C start /w $env:TEMP\vs_buildtools.exe `