Skip to content

Commit 65a5cdb

Browse files
committed
Merge pull request #278 from mcfedr/child-entitlements
Add option for child entitlements
2 parents ac5098c + 623b068 commit 65a5cdb

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

mac.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ module.exports = {
163163
// as boolean value true. Then fallback to null for auto discovery,
164164
// otherwise provided signing certificate.
165165
identity: opts.sign === true ? null : opts.sign,
166-
entitlements: opts['sign-entitlements']
166+
entitlements: opts['sign-entitlements'],
167+
'entitlements-inherit': opts['sign-entitlements-inherit']
167168
}, function (err) {
168169
if (err) {
169170
console.warn('Code sign failed; please retry manually.')

readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ If the file extension is omitted, it is auto-completed to the correct extension
240240

241241
`sign-entitlements` - *String*
242242

243-
The path to entitlements used in signing. (Currently limited to Mac App Store distribution.)
243+
The path to the 'parent' entitlements used in signing.
244+
245+
`sign-entitlements-inherit` - *String*
246+
247+
The path to the 'child' entitlements. See [electron-osx-sign](https://www.npmjs.com/package/electron-osx-sign#opts) for more details.
244248

245249
`strict-ssl` - *Boolean*
246250

usage.txt

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

0 commit comments

Comments
 (0)