Socket
Socket
Sign inDemoInstall

electron-osx-sign

Package Overview
Dependencies
Maintainers
1
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.10 to 0.4.11

4

bin/electron-osx-sign-usage.txt

@@ -28,2 +28,6 @@

--hardened-runtime
Flag to enable the Mojave hardened runtime when signing the app. Disabled by default, requires Xcode >= 10 and macOS
>= 10.13.6.
--help

@@ -30,0 +34,0 @@ Flag to display all commands.

3

bin/electron-osx-sign.js

@@ -10,3 +10,4 @@ #!/usr/bin/env node

'pre-embed-provisioning-profile',
'gatekeeper-assess'
'gatekeeper-assess',
'hardened-runtime'
],

@@ -13,0 +14,0 @@ 'default': {

{
"name": "electron-osx-sign",
"version": "0.4.10",
"version": "0.4.11",
"description": "Codesign Electron macOS apps",

@@ -26,3 +26,3 @@ "main": "index.js",

"minimist": "^1.2.0",
"plist": "^2.1.0"
"plist": "^3.0.1"
},

@@ -29,0 +29,0 @@ "devDependencies": {

@@ -171,2 +171,7 @@ # electron-osx-sign [![npm][npm_img]][npm_url] [![Build Status][travis_img]][travis_url]

`hardedRuntime` - *Boolean*
Flag to enable the Mojave hardened runtime when signing the app. Disabled by default, requires Xcode >= 10 and
macOS >= 10.13.6.
`identity` - *String*

@@ -384,6 +389,6 @@

> electron-osx-sign@0.4.10 pretest electron-osx-sign
> electron-osx-sign@0.4.11 pretest electron-osx-sign
> rimraf test/work
> electron-osx-sign@0.4.10 test electron-osx-sign
> electron-osx-sign@0.4.11 test electron-osx-sign
> standard && tape test

@@ -390,0 +395,0 @@

@@ -27,2 +27,4 @@ /**

const osRelease = require('os').release()
/**

@@ -86,3 +88,2 @@ * This function returns a promise validating opts.binaries, the additional binaries to be signed along with the discovered enclosed components.

var compareVersion = require('compare-version')
var osRelease = require('os').release()
debuglog('Verifying application bundle with codesign...')

@@ -160,2 +161,10 @@

}
if (opts.hardenedRuntime || opts['hardened-runtime']) {
// 17.7.0 === 10.13.6
if (compareVersion(osRelease, '17.7.0') >= 0) {
args.push('--options', 'runtime')
} else {
debuglog('Not enabling hardened runtime, current macOS version too low, requires 10.13.6 and higher')
}
}

@@ -162,0 +171,0 @@ var promise

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