You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Electron Fuses to the packaging pipeline #3076
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem description
In Electron, Fuses are package-time toggle features that can disable certain features on a per-app basis. For example, apps might not want to ship with the ELECTRON_RUN_AS_NODE capability, and can turn it off for their app with a fuse.
Going for a plugin would potentially help with modularization, though it doesn't look like it's going to take a lot of code (@electron/fuses' docs show a complete example in just a few LOC), so maybe it can be just built into Forge (or packager?) directly. Either way, I'd happy to take on this once an approach is decided.
@erikian Why close that PR? It looked perfect for adding Fuses support in both places. Has anyone made a plugin to do support using Fuses through Forge/Packager yet?
Activity
erikian commentedon Nov 16, 2022
Going for a plugin would potentially help with modularization, though it doesn't look like it's going to take a lot of code (
@electron/fuses' docs show a complete example in just a few LOC), so maybe it can be just built into Forge (or packager?) directly. Either way, I'd happy to take on this once an approach is decided.pacocoursey commentedon Dec 16, 2022
@erikian Why close that PR? It looked perfect for adding Fuses support in both places. Has anyone made a plugin to do support using Fuses through Forge/Packager yet?
SpacingBat3 commentedon Feb 2, 2023
@erickzhao As a workaround / current way how to use Fuses with Electron Forge, you can use
hookslike this: