From a4b76b411e759c2f4d05c893fa993ed836e83fe8 Mon Sep 17 00:00:00 2001 From: develar Date: Wed, 21 Jun 2017 09:22:43 +0200 Subject: [PATCH] feat(mac): Ignore Contents/PlugIns MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [PlugIns] contains loadable bundles that extend the basic features of your application. You use this directory to include code modules that must be loaded into your application’s process space in order to be used. You would not use this directory to store standalone executables. Close #1699 --- README.md | 2 -- packages/electron-builder/src/macPackager.ts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8d35b34c72..b9de71c123d 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,6 @@ Platform specific `7zip-bin-*` packages are `optionalDependencies`, which may re ## Quick Setup Guide -Maybe some [boilerplate](#boilerplates) will suite you? - 1. Specify the standard fields in the application `package.json` — [name](https://github.com/electron-userland/electron-builder/wiki/Options#Metadata-name), `description`, `version` and [author](https://docs.npmjs.com/files/package.json#people-fields-author-contributors). 2. Specify the [build](https://github.com/electron-userland/electron-builder/wiki/Options#build) configuration in the `package.json` as follows: diff --git a/packages/electron-builder/src/macPackager.ts b/packages/electron-builder/src/macPackager.ts index 78aac0a555d..cba0b3ed198 100644 --- a/packages/electron-builder/src/macPackager.ts +++ b/packages/electron-builder/src/macPackager.ts @@ -185,6 +185,8 @@ export default class MacPackager extends PlatformPackager { const signOptions: any = { "identity-validation": false, + // https://github.com/electron-userland/electron-builder/issues/1699 + ignore: (file: string) => file.startsWith("/Contents/PlugIns", appPath.length), identity: identity!, type: type, platform: isMas ? "mas" : "darwin",