From b303ea405b292ed366f2903ca8d283c0c6ccd3c9 Mon Sep 17 00:00:00 2001 From: millionart Date: Tue, 5 May 2026 19:05:56 +0800 Subject: [PATCH] fix: guard windows installer smoke exits --- .github/workflows/release-tauri.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-tauri.yml b/.github/workflows/release-tauri.yml index f58ff75b..a648bf87 100644 --- a/.github/workflows/release-tauri.yml +++ b/.github/workflows/release-tauri.yml @@ -308,7 +308,13 @@ jobs: if (-not $nsis) { throw "NSIS installer not found." } if (-not $msi) { throw "MSI installer not found." } powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\windows-ime-install-smoke.ps1 -InstallerPath $nsis.FullName -InstallerKind nsis + if ($LASTEXITCODE -ne 0) { + throw "NSIS installer smoke failed with exit $LASTEXITCODE" + } powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\windows-ime-install-smoke.ps1 -InstallerPath $msi.FullName -InstallerKind msi + if ($LASTEXITCODE -ne 0) { + throw "MSI installer smoke failed with exit $LASTEXITCODE" + } # ── Linux:产 deb / rpm / AppImage ── - name: Build (Linux)