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

@electron-forge/maker-base

Package Overview
Dependencies
Maintainers
5
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-forge/maker-base

Base maker for Electron Forge

  • 7.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
148K
increased by0.04%
Maintainers
5
Weekly downloads
 
Created

What is @electron-forge/maker-base?

@electron-forge/maker-base is a base class for creating makers in Electron Forge, which are responsible for packaging Electron applications into distributable formats.

What are @electron-forge/maker-base's main functionalities?

Creating a Custom Maker

This code demonstrates how to create a custom maker by extending the MakerBase class. The custom maker can implement its own logic for packaging an Electron application.

const { MakerBase } = require('@electron-forge/maker-base');

class MyCustomMaker extends MakerBase {
  constructor() {
    super();
    this.name = 'my-custom-maker';
  }

  async make({ dir, appName, targetPlatform, targetArch }) {
    console.log(`Making ${appName} for ${targetPlatform} on ${targetArch}`);
    // Custom packaging logic here
  }
}

module.exports = MyCustomMaker;

Other packages similar to @electron-forge/maker-base

FAQs

Package last updated on 26 Nov 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