From ae43b6c4cda83a84f92214b804d6c092481c60d3 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Thu, 30 Apr 2026 12:08:36 +0700 Subject: [PATCH] fix(desktop): skip packaged-app smoke when build arch differs from host Cross-arch packaging (e.g. arm64 build on an x64 Windows runner) can't smoke the unpacked binary because the host can't spawn it. Skip the smoke instead of crashing with spawn UNKNOWN. --- packages/desktop/scripts/after-pack.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/desktop/scripts/after-pack.js b/packages/desktop/scripts/after-pack.js index 473689763..139943763 100644 --- a/packages/desktop/scripts/after-pack.js +++ b/packages/desktop/scripts/after-pack.js @@ -128,7 +128,13 @@ exports.default = async function afterPack(context) { pruneNativeModules(context.appOutDir, platform, arch); if (platform === "linux" || platform === "win32") { - await smokeUnpackedAppIfRequested(context.appOutDir); + if (arch !== process.arch) { + console.log( + `Skipping packaged-app smoke: build arch ${arch} differs from host ${process.arch}.`, + ); + } else { + await smokeUnpackedAppIfRequested(context.appOutDir); + } } };