From 5a756d7d14533a8a84f5fb7df82c88f691fd3141 Mon Sep 17 00:00:00 2001 From: katipally Date: Thu, 16 Jul 2026 17:40:53 -0700 Subject: [PATCH] Mac universal build: declare the sherpa-onnx darwin packages in x64ArchFiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The agent bundle ships both darwin platform packages for voice cloning (the addon picks by os.arch() at runtime), so their Mach-O files are identical in the x64 and arm64 passes of the universal build — electron-builder rejects the merge unless they're covered by x64ArchFiles. This is what failed the v0.2.0 mac release build (the retries were mislabeled as notarization flakes). Verified locally: the universal DMG builds clean with this. --- apps/desktop/electron-builder.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/desktop/electron-builder.yml b/apps/desktop/electron-builder.yml index b41ff7f..04bfd1f 100644 --- a/apps/desktop/electron-builder.yml +++ b/apps/desktop/electron-builder.yml @@ -42,6 +42,11 @@ mac: - target: zip arch: [universal] artifactName: ${productName}-${version}-mac.${ext} + # The agent bundle ships BOTH darwin sherpa-onnx platform packages (voice + # cloning; the addon picks by os.arch() at runtime), so those Mach-O files are + # identical across the two single-arch passes of the universal build. Declare + # them or electron-builder rejects the merge ("not covered by x64ArchFiles"). + x64ArchFiles: "**/sherpa-onnx-darwin-*/**" hardenedRuntime: true gatekeeperAssess: false entitlements: build/entitlements.mac.plist