Skip to content

Commit

Permalink
Add option for child entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfedr committed Mar 8, 2016
1 parent ac5098c commit 623b068
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mac.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ module.exports = {
// as boolean value true. Then fallback to null for auto discovery,
// otherwise provided signing certificate.
identity: opts.sign === true ? null : opts.sign,
entitlements: opts['sign-entitlements']
entitlements: opts['sign-entitlements'],
'entitlements-inherit': opts['sign-entitlements-inherit']
}, function (err) {
if (err) {
console.warn('Code sign failed; please retry manually.')
Expand Down
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ If the file extension is omitted, it is auto-completed to the correct extension

`sign-entitlements` - *String*

The path to entitlements used in signing. (Currently limited to Mac App Store distribution.)
The path to the 'parent' entitlements used in signing.

`sign-entitlements-inherit` - *String*

The path to the 'child' entitlements. See [electron-osx-sign](https://www.npmjs.com/package/electron-osx-sign#opts) for more details.

`strict-ssl` - *Boolean*

Expand Down
4 changes: 3 additions & 1 deletion usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ out the dir to put the app into at the end. defaults to current w
overwrite if output directory for a platform already exists, replaces it rather than skipping it
prune runs `npm prune --production` on the app
sign should contain the identity to be used when running `codesign` (only for building for the darwin/mas platform, on OS X)
sign-entitlements the path to entitlements used in signing (mas platform only)
sign-entitlements the path to entitlements used in signing
sign-entitlements-inherit
the path to the 'child' entitlements
strict-ssl whether SSL certificates are required to be valid when downloading Electron.
It defaults to true, use --strict-ssl=false to disable checks.
tmpdir temp directory. Defaults to system temp directory, use --tmpdir=false to disable use of a temporary directory.
Expand Down

0 comments on commit 623b068

Please sign in to comment.