mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user