icinga2/choco/chocolateyInstall.ps1.template.cmake
Alexander A. Klimov c0dc346ae5 Don't upload 32 bit MSIs to Chocolatey
Precisely speaking, `tools/win32/build-choco.ps1` creates a PS script that
downloads our MSIs from packages.icinga.com - to be uploaded to Chocolatey.
This PS script now omits 32 bit MSIs.

Despite being a niche, 32-bit MSIs currently get uploaded to Chocolatey.
Their antiviruses block our whole releases due to the 32-bit MSIs being fishy.
2026-03-12 16:59:58 +01:00

16 lines
No EOL
488 B
CMake

$packageName= 'icinga2'
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$url64 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86_64.msi'
$packageArgs = @{
packageName = $packageName
fileType = 'msi'
url64bit = $url64
silentArgs = "/qn /norestart"
validExitCodes= @(0)
softwareName = 'Icinga 2*'
checksum64 = '%CHOCO_64BIT_CHECKSUM%'
checksumType64= 'sha256'
}
Install-ChocolateyPackage @packageArgs