Socket
Socket
Sign inDemoInstall

@electron/osx-sign

Package Overview
Dependencies
Maintainers
1
Versions
9
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 1.0.5 to 1.1.0

7

dist/cjs/sign.js

@@ -220,3 +220,8 @@ "use strict";

if (perFileOptions.requirements) {
perFileArgs.push('--requirements', perFileOptions.requirements);
if (perFileOptions.requirements.charAt(0) === '=') {
perFileArgs.push(`-r${perFileOptions.requirements}`);
}
else {
perFileArgs.push('--requirements', perFileOptions.requirements);
}
}

@@ -223,0 +228,0 @@ if (perFileOptions.timestamp) {

2

dist/cjs/types.d.ts

@@ -26,3 +26,3 @@ export type ElectronMacPlatform = 'darwin' | 'mas';

/**
* The designated requirements to embed when signing this file
* The designated requirements to embed when signing this file. Expects a path to a text file.
*/

@@ -29,0 +29,0 @@ requirements?: string;

@@ -191,3 +191,8 @@ import * as fs from 'fs-extra';

if (perFileOptions.requirements) {
perFileArgs.push('--requirements', perFileOptions.requirements);
if (perFileOptions.requirements.charAt(0) === '=') {
perFileArgs.push(`-r${perFileOptions.requirements}`);
}
else {
perFileArgs.push('--requirements', perFileOptions.requirements);
}
}

@@ -194,0 +199,0 @@ if (perFileOptions.timestamp) {

@@ -26,3 +26,3 @@ export type ElectronMacPlatform = 'darwin' | 'mas';

/**
* The designated requirements to embed when signing this file
* The designated requirements to embed when signing this file. Expects a path to a text file.
*/

@@ -29,0 +29,0 @@ requirements?: string;

{
"name": "@electron/osx-sign",
"version": "1.0.5",
"version": "1.1.0",
"description": "Codesign Electron macOS apps",

@@ -37,3 +37,2 @@ "main": "dist/cjs/index.js",

"devDependencies": {
"@continuous-auth/semantic-release-npm": "^3.0.0",
"@electron/get": "^2.0.2",

@@ -40,0 +39,0 @@ "@types/compare-version": "^0.1.31",

@@ -29,3 +29,3 @@ # @electron/osx-sign [![npm][npm_img]][npm_url] [![Build Status][circleci_img]][circleci_url]

*Note: `@electron/osx-sign` is a dependency of [`electron-packager`](https://github.com/electron/electron-packager) as of 6.0.0 for signing apps on macOS. However, feel free to install this package globally for more customization beyond specifying identity and entitlements.*
*Note: `@electron/osx-sign` is a dependency of [`@electron/packager`](https://github.com/electron/packager) as of 6.0.0 for signing apps on macOS. However, feel free to install this package globally for more customization beyond specifying identity and entitlements.*

@@ -76,3 +76,3 @@ ## Usage

| `hardenedRuntime` | Boolean flag to enable the Hardened Runtime when signing the app. Enabled by default. | `false` |
| `requirements` | String specifying the [requirements](https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html) that you recommend to be used to evaluate the code signature. | `'anchor apple or anchor = "/var/db/yourcorporateanchor.cert"'` |
| `requirements` | Either a string beginning with `=` which specifies in plain text the [signing requirements](https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html) that you recommend to be used to evaluate the code signature, or a string specifying a path to a text or properly encoded `.rqset` file which contains those requirements. | `'=designated => identifier com.github.Electron'`<br> or <br> `'path/to/requirements.rqset'` |
| `signatureFlags` | List of [code signature flags](https://developer.apple.com/documentation/security/seccodesignatureflags?language=objc). Accepts an array of strings or a comma-separated string. | `['kSecCodeSignatureRestrict']` |

@@ -79,0 +79,0 @@ | `timestamp` | String specifying the URL of the timestamp authority server. Defaults to the server provided by Apple. Please note that this default server may not support signatures not furnished by Apple. Disable the timestamp service with `none`. | `'https://different.timeserver'` |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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