fix(desktop): expect per-arch native artifacts for universal builds (#1604)

This commit is contained in:
Hampus
2026-08-15 01:47:40 +02:00
committed by GitHub
parent 6e4c055ebd
commit 8ff2eb0ca7
+10
View File
@@ -220,6 +220,16 @@ function platformTag(platform, arch) {
}
function expectedNativeRuntimeArtifacts(platform = process.platform, arch = process.env.ELECTRON_ARCH || process.arch) {
if (platform === 'darwin' && arch === 'universal') {
return [
...expectedNativeRuntimeArtifactsForArch(platform, 'arm64'),
...expectedNativeRuntimeArtifactsForArch(platform, 'x64'),
];
}
return expectedNativeRuntimeArtifactsForArch(platform, arch);
}
function expectedNativeRuntimeArtifactsForArch(platform, arch) {
const tag = platformTag(platform, arch);
if (!tag) return [];
const artifacts = [];