forge/packages/plugin/fuses
Keeley Hammond d3d47b2bc5 v7.4.0 2024-04-11 15:01:18 -07:00
..
src fix(plugin-fuses): use target platform in the executable path (#3376) 2023-10-20 16:30:29 -07:00
test test(plugin-fuses): clear test TODOs (#3306) 2023-08-20 10:12:19 -03:00
README.md build: lint JS in Markdown (#3251) 2023-06-15 14:24:38 -07:00
package.json v7.4.0 2024-04-11 15:01:18 -07:00

README.md

@electron-forge/plugin-fuses

This plugin allows flipping Electron Fuses when packaging your app with Electron Forge.

Usage

Install @electron-forge/plugin-fuses and @electron/fuses as dev dependencies and add this plugin to the plugins array in your Forge configuration:

# Yarn
yarn add --dev @electron-forge/plugin-fuses @electron/fuses

# npm
npm i -D @electron-forge/plugin-fuses @electron/fuses
// forge.config.js

const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');

const forgeConfig = {
  plugins: [
    new FusesPlugin({
      version: FuseVersion.V1,
      [FuseV1Options.RunAsNode]: false
      // ...any other options supported by @electron/fuses
    })
  ]
};

module.exports = forgeConfig;