electron-osx-sign
Advanced tools
Comparing version 0.4.10 to 0.4.11
@@ -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. |
@@ -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 @@ |
11
sign.js
@@ -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 |
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
78582
1572
479
26
+ Added@xmldom/xmldom@0.8.10(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedplist@3.1.0(transitive)
+ Addedxmlbuilder@15.1.1(transitive)
- Removedbase64-js@1.2.0(transitive)
- Removedplist@2.1.0(transitive)
- Removedxmlbuilder@8.2.2(transitive)
- Removedxmldom@0.1.31(transitive)
Updatedplist@^3.0.1