From ba7a594d37da6725292614c77f5f321ef1bb2642 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Wed, 21 Jan 2026 12:40:01 +0100 Subject: [PATCH] Fix macOS universal build for electron-builder 26.4.0 electron-builder 26.4.0 includes a stricter version of @electron/universal that validates Mach-O binaries during universal app creation. The bufferutil package installs prebuilt binaries for all architectures (darwin-x64 and darwin-arm64), causing the universal merger to detect identical files in both builds and fail. Add x64ArchFiles pattern to allow these architecture-specific prebuilds to pass validation without attempting to merge them with lipo. --- apps/desktop/electron-builder.json | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop/electron-builder.json b/apps/desktop/electron-builder.json index 83bd2921551..2b670608854 100644 --- a/apps/desktop/electron-builder.json +++ b/apps/desktop/electron-builder.json @@ -72,6 +72,7 @@ }, "provisioningProfile": "bitwarden_desktop_developer_id.provisionprofile", "singleArchFiles": "node_modules/@bitwarden/desktop-napi/desktop_napi.darwin-*.node", + "x64ArchFiles": "**/bufferutil/**/darwin-*/*.node", "extraFiles": [ { "from": "desktop_native/dist/desktop_proxy.${platform}-${arch}",