Updated build process for Zabbix agent (windows)

This commit is contained in:
Alexey Pustovalov 2024-05-21 00:55:13 +09:00
parent 06cdbd2788
commit af0bab5bac

View File

@ -145,9 +145,12 @@ RUN Set-Location -Path $env:SystemDrive\.; `
` `
Write-Host 'Installing MSYS2...'; ` Write-Host 'Installing MSYS2...'; `
& $env:TEMP\msys2.sfx.exe -y -o"""$env:SystemDrive\""" | Out-Null; ` & $env:TEMP\msys2.sfx.exe -y -o"""$env:SystemDrive\""" | Out-Null; `
bash -lc 'pacman -Syuu --needed --noconfirm --ask=20'; ` # bash -lc 'pacman -Syuu --needed --noconfirm --ask=20'; `
bash -lc 'pacman -Syu --noconfirm'; ` # bash -lc 'pacman -Syu --noconfirm'; `
bash -lc 'pacman --noconfirm -Syuu'; `
bash -lc 'pacman --noconfirm -Syuu'; `
bash -lc 'pacman --sync --quiet --noconfirm mingw-w64-ucrt-x86_64-cmake'; ` bash -lc 'pacman --sync --quiet --noconfirm mingw-w64-ucrt-x86_64-cmake'; `
bash -lc 'pacman --noconfirm -Scc'; `
` `
Write-Host 'Verifying install ("bash --version") ...'; ` Write-Host 'Verifying install ("bash --version") ...'; `
bash --version; ` bash --version; `
@ -178,7 +181,6 @@ RUN Set-Location -Path $env:SystemDrive\.; `
` `
Write-Host 'Removing downloaded...'; ` Write-Host 'Removing downloaded...'; `
Remove-Item -Force -Recurse $env:TEMP\*; ` Remove-Item -Force -Recurse $env:TEMP\*; `
Remove-Item -Force -Recurse $env:SystemDrive\msys64\*; `
tasklist; ` tasklist; `
get-process; ` get-process; `
taskkill /F /FI """MODULES eq msys-2.0.dll"""; ` taskkill /F /FI """MODULES eq msys-2.0.dll"""; `