Skip to content

Commit a4b76b4

Browse files
committed
feat(mac): Ignore Contents/PlugIns
[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
1 parent 8660093 commit a4b76b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ Platform specific `7zip-bin-*` packages are `optionalDependencies`, which may re
4444

4545
## Quick Setup Guide
4646

47-
Maybe some [boilerplate](#boilerplates) will suite you?
48-
4947
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).
5048

5149
2. Specify the [build](https://github.com/electron-userland/electron-builder/wiki/Options#build) configuration in the `package.json` as follows:

packages/electron-builder/src/macPackager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ export default class MacPackager extends PlatformPackager<MacOptions> {
185185

186186
const signOptions: any = {
187187
"identity-validation": false,
188+
// https://github.com/electron-userland/electron-builder/issues/1699
189+
ignore: (file: string) => file.startsWith("/Contents/PlugIns", appPath.length),
188190
identity: identity!,
189191
type: type,
190192
platform: isMas ? "mas" : "darwin",

0 commit comments

Comments
 (0)