electron-osx-sign
Advanced tools
Comparing version 0.4.17 to 0.5.0
{ | ||
"name": "electron-osx-sign", | ||
"version": "0.4.17", | ||
"version": "0.5.0", | ||
"description": "Codesign Electron macOS apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -170,2 +170,8 @@ # electron-osx-sign [![npm][npm_img]][npm_url] [![Build Status][circleci_img]][circleci_url] | ||
`entitlementsForFile` - *Function* | ||
Function that receives the path to a file and the current codesign arguments as parameters. If you wish to override the entitlements used for this file path this function should return the absolute path to a different entitlements file. | ||
**Note:** Only available via the JS API | ||
`gatekeeper-assess` - *Boolean* | ||
@@ -172,0 +178,0 @@ |
16
sign.js
@@ -225,7 +225,19 @@ /** | ||
return execFileAsync('codesign', args.concat('--entitlements', entitlementsFile, filePath)) | ||
const clonedArgs = args.concat([]); | ||
if (opts.entitlementsForFile) { | ||
entitlementsFile = opts.entitlementsForFile(filePath, clonedArgs) || entitlementsFile | ||
} | ||
return execFileAsync('codesign', clonedArgs.concat('--entitlements', entitlementsFile, filePath)) | ||
}) | ||
.then(function () { | ||
debuglog('Signing... ' + opts.app) | ||
return execFileAsync('codesign', args.concat('--entitlements', opts.entitlements, opts.app)) | ||
const clonedArgs = args.concat([]); | ||
let entitlementsFile = opts.entitlements | ||
if (opts.entitlementsForFile) { | ||
entitlementsFile = opts.entitlementsForFile(opts.app, clonedArgs) || entitlementsFile; | ||
} | ||
return execFileAsync('codesign', clonedArgs.concat('--entitlements', opts.entitlements, opts.app)) | ||
}) | ||
@@ -232,0 +244,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73382
1252
459