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.
This commit is contained in:
Mohamed Boudra
2026-04-30 12:08:36 +07:00
parent f286a5beea
commit ae43b6c4cd

View File

@@ -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);
}
}
};