installer: fail the package build when wix fails or an MSI is missing (#2727)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-15 22:47:00 +02:00
committed by GitHub
parent ddd72526d1
commit a73b5ec1ea
2 changed files with 51 additions and 14 deletions
+11
View File
@@ -335,6 +335,17 @@ jobs:
- name: Generate checksums
run: |
$ErrorActionPreference = "Stop"
$Version = Get-Content output\VERSION
# Checksum only a complete set of artifacts.
foreach($Arch in "amd64", "arm64") {
foreach($Extension in "exe", "msi") {
$Artifact = "output\windows_exporter-$Version-$Arch.$Extension"
if (-not (Test-Path -PathType Leaf $Artifact)) {
throw "Missing release artifact $Artifact"
}
}
}
$checksums = Get-ChildItem -Path output -File |
Where-Object { $_.Name -match '^windows_exporter-.*\.(exe|msi)$' } |