From 4171774aeefc7b885d7abfebaa10fe9efb9043bb Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Mon, 14 Nov 2022 15:10:10 -0400 Subject: [PATCH] Exclude unnecessary binaries for native modules (#2380) --- electron-builder.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/electron-builder.json b/electron-builder.json index 81793a71..2b9dd3e9 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -17,7 +17,12 @@ "files": [ "node_modules/bootstrap/dist/**", "node_modules/font-awesome/{css,fonts}/**", - "!**/node_modules/macos-notification-state/build/Release/.forge-meta", + "!**/node_modules/macos-notification-state/bin/**/*", + "!**/node_modules/macos-notification-state/build/**/*", + "!**/node_modules/windows-focus-assist/bin/**/*", + "!**/node_modules/windows-focus-assist/build/**/*", + "node_modules/macos-notification-state/build/**/*.node", + "node_modules/windows-focus-assist/build/Release/**/*.node", { "from": "dist", "to": ".", @@ -49,8 +54,8 @@ "priority": "optional" }, "asarUnpack": [ - "./node_modules/macos-notification-state/**/*", - "./node_modules/windows-focus-assist/**/*" + "./node_modules/macos-notification-state/build/Release/**/*.node", + "./node_modules/windows-focus-assist/build/Release/**/*.node" ], "linux": { "category": "Network;InstantMessaging",