Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@electron-forge/maker-base
Advanced tools
@electron-forge/maker-base is a base class for creating makers in Electron Forge, which are responsible for packaging Electron applications into distributable formats.
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;
electron-packager is a tool for packaging Electron applications. It provides a straightforward way to create distributable versions of your app. Unlike @electron-forge/maker-base, which is a base class for creating custom makers, electron-packager is a complete solution for packaging.
electron-builder is a comprehensive solution for building and packaging Electron applications. It supports a wide range of target formats and platforms. Compared to @electron-forge/maker-base, which requires custom implementation for each maker, electron-builder offers a more out-of-the-box experience with extensive configuration options.
FAQs
Base maker for Electron Forge
The npm package @electron-forge/maker-base receives a total of 113,500 weekly downloads. As such, @electron-forge/maker-base popularity was classified as popular.
We found that @electron-forge/maker-base demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.