Comment on page
Local Electron Plugin
Integrate a local build of Electron into your Forge app.
This plugin should only be used by people who are building Electron locally themselves. If you want to use a fork of Electron, check out the environment variables you can use to configure
@electron/get
.This plugin allows you to both run and build your app using a local build of Electron. This can be incredibly useful if you want to test a feature or a bug fix in your app before making a PR up to the Electron repository.
npm install --save-dev @electron-forge/plugin-local-electron
Once you have a working build of Electron, point the plugin's
electronPath
config option to the folder containing the built Electron binary.forge.config.js
{
plugins: [
{
name: '@electron-forge/plugin-local-electron',
config: {
electronPath: '/Users/me/projects/electron/out/Testing'
}
}
]
}
Please note that the plugin only accepts absolute paths. You should use Node's
path.resolve()
to make things deterministic.Last modified 1mo ago