Socket
Socket
Sign inDemoInstall

electron-osx-sign

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-osx-sign - npm Package Compare versions

Comparing version 0.4.17 to 0.5.0

2

package.json
{
"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 @@

@@ -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 {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc