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

Codesign Electron macOS apps


Version published
Weekly downloads
93K
decreased by-16.58%
Maintainers
2
Weekly downloads
 
Created

What is electron-osx-sign?

The electron-osx-sign package is used to sign and verify macOS applications built with Electron. It ensures that your application is properly signed with a valid Apple Developer ID, which is necessary for distribution and to avoid security warnings.

What are electron-osx-sign's main functionalities?

Code Signing

This feature allows you to sign your macOS application with a valid Apple Developer ID. The code sample demonstrates how to use the `sign` function to sign an application located at 'path/to/your/app' with the specified identity.

const sign = require('electron-osx-sign').sign;
sign({
  app: 'path/to/your/app',
  identity: 'Developer ID Application: Your Name (XXXXXXXXXX)'
}, function done (err) {
  if (err) {
    console.error('Error during signing:', err);
  } else {
    console.log('Application signed successfully');
  }
});

Verification

This feature allows you to verify that your macOS application has been correctly signed. The code sample demonstrates how to use the `verify` function to check the signature of an application located at 'path/to/your/app'.

const verify = require('electron-osx-sign').verify;
verify({
  app: 'path/to/your/app'
}, function done (err, result) {
  if (err) {
    console.error('Error during verification:', err);
  } else {
    console.log('Verification result:', result);
  }
});

Entitlements

This feature allows you to sign your macOS application with specific entitlements. The code sample demonstrates how to use the `sign` function to sign an application with entitlements specified in 'path/to/entitlements.plist'.

const sign = require('electron-osx-sign').sign;
sign({
  app: 'path/to/your/app',
  identity: 'Developer ID Application: Your Name (XXXXXXXXXX)',
  entitlements: 'path/to/entitlements.plist'
}, function done (err) {
  if (err) {
    console.error('Error during signing with entitlements:', err);
  } else {
    console.log('Application signed successfully with entitlements');
  }
});

Other packages similar to electron-osx-sign

FAQs

Package last updated on 28 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc