Muqriz 48f16bfc3e initail first | 4ヶ月前 | |
---|---|---|
.. | ||
dist | 4ヶ月前 | |
src | 4ヶ月前 | |
LICENSE | 4ヶ月前 | |
README.md | 4ヶ月前 | |
package.json | 4ヶ月前 |
This plugin allows flipping Electron Fuses when packaging your app with Electron Forge.
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;