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

@electron/notarize

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/notarize

Notarize your Electron app

  • 2.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @electron/notarize?

@electron/notarize is an npm package designed to help developers notarize their Electron applications for macOS. Notarization is a process by which Apple scans your app for malicious content and checks for code-signing issues. This package simplifies the process of submitting your app to Apple's notarization service and retrieving the results.

What are @electron/notarize's main functionalities?

Notarize an Electron App

This feature allows you to notarize your Electron application by providing the app bundle ID, the path to your app, and your Apple ID credentials. The function `notarize` handles the submission to Apple's notarization service.

const { notarize } = require('@electron/notarize');

async function notarizeApp() {
  await notarize({
    appBundleId: 'com.example.app',
    appPath: '/path/to/your/app.app',
    appleId: 'your-apple-id@example.com',
    appleIdPassword: 'your-apple-id-password'
  });
}

notarizeApp().catch(console.error);

Check Notarization Status

This feature allows you to check the status of a notarization request by providing the request UUID and your Apple ID credentials. The function `checkNotarizationStatus` retrieves the current status of the notarization process.

const { checkNotarizationStatus } = require('@electron/notarize');

async function checkStatus(requestUUID) {
  const status = await checkNotarizationStatus({
    requestUUID,
    appleId: 'your-apple-id@example.com',
    appleIdPassword: 'your-apple-id-password'
  });
  console.log(status);
}

checkStatus('your-request-uuid').catch(console.error);

Staple Notarization Ticket

This feature allows you to staple the notarization ticket to your Electron application. The function `stapleApp` ensures that the notarization ticket is attached to your app, which is required for distribution.

const { stapleApp } = require('@electron/notarize');

async function staple() {
  await stapleApp({
    appPath: '/path/to/your/app.app'
  });
}

staple().catch(console.error);

Other packages similar to @electron/notarize

FAQs

Package last updated on 17 Sep 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