Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

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

Hampus8ff2eb0ca75f
diff --git a/fluxer_desktop/scripts/build.mjs b/fluxer_desktop/scripts/build.mjs
index 91425a4d5..5a6073602 100644
--- a/fluxer_desktop/scripts/build.mjs
+++ b/fluxer_desktop/scripts/build.mjs
@@ -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 = [];