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

@electron/universal

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/universal

Utility for creating Universal macOS applications from two x64 and arm64 Electron applications

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @electron/universal?

@electron/universal is an npm package designed to help developers create and manage universal builds of Electron applications. It allows you to combine multiple platform-specific builds (e.g., macOS, Windows, Linux) into a single package that can be distributed and run on different operating systems.

What are @electron/universal's main functionalities?

Combining Platform-Specific Builds

This feature allows you to combine x64 and arm64 builds of your Electron app into a single universal app. The code sample demonstrates how to use the `makeUniversalApp` function to specify the paths to the x64 and arm64 builds and the output path for the universal app.

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

makeUniversalApp({
  x64AppPath: 'path/to/x64/app',
  arm64AppPath: 'path/to/arm64/app',
  outAppPath: 'path/to/universal/app'
}).then(() => {
  console.log('Universal app created successfully!');
}).catch((err) => {
  console.error('Error creating universal app:', err);
});

Extracting Platform-Specific Builds

This feature allows you to extract the x64 and arm64 builds from a universal app. The code sample demonstrates how to use the `extractFromUniversalApp` function to specify the path to the universal app and the output paths for the extracted x64 and arm64 builds.

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

extractFromUniversalApp({
  universalAppPath: 'path/to/universal/app',
  x64AppPath: 'path/to/extracted/x64/app',
  arm64AppPath: 'path/to/extracted/arm64/app'
}).then(() => {
  console.log('Platform-specific builds extracted successfully!');
}).catch((err) => {
  console.error('Error extracting builds:', err);
});

Other packages similar to @electron/universal

Keywords

FAQs

Package last updated on 09 Nov 2023

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