mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-11 21:18:29 +09:00
fix(desktop): expect per-arch native artifacts for universal builds (#1604)
This commit is contained in:
1 parent
6e4c055ebd
commit
8ff2eb0ca7
1 file changed
+10
@@ -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 = [];
|
||||
|
||||
Reference in new issue
Block a user