From ea246716fca4ccca497f8863c5369de18a3fb67a Mon Sep 17 00:00:00 2001 From: Luke Parker <10430890+Hona@users.noreply.github.com> Date: Fri, 13 Nov 2026 08:37:55 +1000 Subject: [PATCH] fix(desktop): re-sign unsigned macOS builds after flipping fuses --- packages/desktop/electron-builder.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/desktop/electron-builder.config.ts b/packages/desktop/electron-builder.config.ts index 0273a45cb81..2d4f6f7933a 100644 --- a/packages/desktop/electron-builder.config.ts +++ b/packages/desktop/electron-builder.config.ts @@ -111,7 +111,9 @@ const getBase = (appId: string): Configuration => { // Electron stores cookies in plain text by default. The browser pane keeps sign-ins, so encrypt them with the OS // key store (Keychain, DPAPI, libsecret or kwallet). This is one-way: turning it off again loses every cookie. // https://www.electronjs.org/docs/latest/tutorial/fuses#cookieencryption - electronFuses: { enableCookieEncryption: true }, + // Flipping a fuse breaks the macOS signature. A build without a signing identity is not signed again, so re-sign it + // ad hoc or Apple Silicon refuses to launch it. A signed build is signed again after the fuses anyway. + electronFuses: { enableCookieEncryption: true, resetAdHocDarwinSignature: true }, afterPack: async (context) => { const arch = Arch[context.arch]