Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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

Codesign Electron macOS apps

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
299K
decreased by-16.36%
Maintainers
1
Weekly downloads
 
Created

What is @electron/osx-sign?

@electron/osx-sign is an npm package designed to help developers sign and verify macOS applications built with Electron. This is crucial for distributing macOS applications outside the Mac App Store, as it ensures the app is trusted by the operating system and users.

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

Code Signing

This feature allows you to sign your Electron application with a specified identity. Code signing is essential for macOS applications to be recognized as trusted software.

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 Electron application has been signed correctly. Verification ensures that the app's signature is valid and has not been tampered with.

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);
  }
});

Notarization

This feature allows you to notarize your Electron application with Apple. Notarization is a process that scans your app for malicious content and generates a ticket that allows macOS to recognize the app as safe.

const notarize = require('@electron/osx-sign').notarize;

notarize({
  appBundleId: 'com.your.app',
  appPath: 'path/to/your/app',
  appleId: 'your-apple-id',
  appleIdPassword: 'your-apple-id-password'
}, function done (err) {
  if (err) {
    console.error('Error during notarization:', err);
  } else {
    console.log('Application notarized successfully');
  }
});

Other packages similar to @electron/osx-sign

FAQs

Package last updated on 04 Jul 2024

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc