mirror of
https://github.com/Icinga/icinga2.git
synced 2026-05-28 04:12:13 -04:00
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.
This commit is contained in:
parent
2d172fb87b
commit
c0dc346ae5
2 changed files with 0 additions and 12 deletions
|
|
@ -1,18 +1,14 @@
|
|||
$packageName= 'icinga2'
|
||||
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
|
||||
$url = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86.msi'
|
||||
$url64 = 'https://packages.icinga.com/windows/Icinga2-v${CHOCO_VERSION_SHORT}-x86_64.msi'
|
||||
|
||||
$packageArgs = @{
|
||||
packageName = $packageName
|
||||
fileType = 'msi'
|
||||
url = $url
|
||||
url64bit = $url64
|
||||
silentArgs = "/qn /norestart"
|
||||
validExitCodes= @(0)
|
||||
softwareName = 'Icinga 2*'
|
||||
checksum = '%CHOCO_32BIT_CHECKSUM%'
|
||||
checksumType = 'sha256'
|
||||
checksum64 = '%CHOCO_64BIT_CHECKSUM%'
|
||||
checksumType64= 'sha256'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,13 +15,6 @@ if(-not (Test-Path "$($env:ICINGA2_BUILDPATH)\choco\chocolateyInstall.ps1.templa
|
|||
$chocoInstallScriptTemplatePath = "$($env:ICINGA2_BUILDPATH)\choco\chocolateyInstall.ps1.template"
|
||||
$chocoInstallScript = Get-Content $chocoInstallScriptTemplatePath
|
||||
|
||||
if(-not (Test-Path "$($env:ICINGA2_BUILDPATH)\*-x86.msi")) {
|
||||
throw "Could not find Icinga 2 32 bit MSI package. Abort."
|
||||
}
|
||||
|
||||
$hashMSIpackage32 = Get-FileHash "$($env:ICINGA2_BUILDPATH)\*-x86.msi"
|
||||
Write-Output "File Hash for 32 bit MSI package: $($hashMSIpackage32.Hash)."
|
||||
|
||||
if(-not (Test-Path "$($env:ICINGA2_BUILDPATH)\*-x86_64.msi")) {
|
||||
throw "Could not find Icinga 2 64 bit MSI package. Abort."
|
||||
}
|
||||
|
|
@ -29,7 +22,6 @@ if(-not (Test-Path "$($env:ICINGA2_BUILDPATH)\*-x86_64.msi")) {
|
|||
$hashMSIpackage64 = Get-FileHash "$($env:ICINGA2_BUILDPATH)\*-x86_64.msi"
|
||||
Write-Output "File Hash for 32 bit MSI package: $($hashMSIpackage64.Hash)"
|
||||
|
||||
$chocoInstallScript = $chocoInstallScript.Replace("%CHOCO_32BIT_CHECKSUM%", "$($hashMSIpackage32.Hash)")
|
||||
$chocoInstallScript = $chocoInstallScript.Replace("%CHOCO_64BIT_CHECKSUM%", "$($hashMSIpackage64.Hash)")
|
||||
Write-Output $chocoInstallScript
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue