From a0ad6748aa691eb51f92e86efc71fe3bc2296c9b Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 28 Sep 2023 10:53:11 -0400 Subject: [PATCH] Add windows packages needed for podman CI Signed-off-by: Chris Evich --- win_images/win_packaging.ps1 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/win_images/win_packaging.ps1 b/win_images/win_packaging.ps1 index 540cbef7..41891623 100644 --- a/win_images/win_packaging.ps1 +++ b/win_images/win_packaging.ps1 @@ -1,3 +1,4 @@ + function CheckExit { param( [parameter(ValueFromRemainingArguments = $true)] @@ -16,7 +17,6 @@ function CheckExit { Exit $LASTEXITCODE } - # Disables runtime process virus scanning, which is not necessary Set-MpPreference -DisableRealtimeMonitoring 1 $ErrorActionPreference = "stop" @@ -25,9 +25,14 @@ Set-ExecutionPolicy Bypass -Scope Process -Force [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072 iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -# Install Git, BZ2 archive support, Go, and the MingW (GCC for Win) compiler for CGO support -# Add pstools to workaorund sess 0 WSL bug -choco install -y git mingw archiver psexec; CheckExit +# Update service is required for dotnet 3.5 (dep of wix) +Set-Service -Name wuauserv -StartupType "Manual" + +# Install Git, BZ2 archive support, Go, and the MingW (GCC for Win) +# compiler for CGO support. Force mingw version 11.2 since later +# versions are/may-be incompatible with CGO. Add wixtoolset for +# installer testing. Add pstools to workaorund sess 0 WSL bug +choco install -y git mingw@11.2 archiver wixtoolset psexec; CheckExit choco install golang --version 1.19.2 -y; CheckExit # Install Hyper-V