Skip to content

Commit

Permalink
Add windows packages needed for podman CI
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Sep 28, 2023
1 parent 80f5d3f commit a0ad674
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions win_images/win_packaging.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

function CheckExit {
param(
[parameter(ValueFromRemainingArguments = $true)]
Expand All @@ -16,7 +17,6 @@ function CheckExit {
Exit $LASTEXITCODE
}


# Disables runtime process virus scanning, which is not necessary
Set-MpPreference -DisableRealtimeMonitoring 1
$ErrorActionPreference = "stop"
Expand All @@ -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
Expand Down

0 comments on commit a0ad674

Please sign in to comment.