Skip to content

Commit

Permalink
fix: Update fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Jun 18, 2024
1 parent 167b152 commit 8cfc9c1
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,31 +47,23 @@ export default {
renderer: [{ name: "main_window", config: "vite.renderer.config.js" }],
},
},
// {
// name: "@electron-forge/plugin-fuses",
// config: {
// version: FuseVersion.V1,
// [FuseV1Options.RunAsNode]: false, // Disables ELECTRON_RUN_AS_NODE
// [FuseV1Options.GrantFileProtocolExtraPrivileges]: true, // Grants the file protocol extra privileges (for the built application)
// [FuseV1Options.EnableCookieEncryption]: false, // Disables cookie encryption
// [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, // Disables the NODE_OPTIONS environment variable
// [FuseV1Options.EnableNodeCliInspectArguments]: false, // Disables the --inspect and --inspect-brk family of CLI options
// [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, // Enforces validation of the app.asar archive on macOS
// [FuseV1Options.OnlyLoadAppFromAsar]: true, // Enforces that Electron will only load your app from "app.asar" instead of its normal search paths
// [FuseV1Options.LoadBrowserProcessSpecificV8Snapshot]: true, // Loads V8 Snapshot from `browser_v8_context_snapshot.bin` for the browser process
// },
// },
//
{
name: "@electron-forge/plugin-fuses",
config: {
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: false,
[FuseV1Options.EnableCookieEncryption]: true,
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
[FuseV1Options.EnableNodeCliInspectArguments]: false,
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
[FuseV1Options.OnlyLoadAppFromAsar]: true,
[FuseV1Options.RunAsNode]: false, // Disables ELECTRON_RUN_AS_NODE

// TEST
// [FuseV1Options.GrantFileProtocolExtraPrivileges]: true, // Grants the file protocol extra privileges (for the built application)

[FuseV1Options.EnableCookieEncryption]: true, // Disables cookie encryption
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, // Disables the NODE_OPTIONS environment variable
[FuseV1Options.EnableNodeCliInspectArguments]: false, // Disables the --inspect and --inspect-brk family of CLI options
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true, // Enforces validation of the app.asar archive on macOS
[FuseV1Options.OnlyLoadAppFromAsar]: true, // Enforces that Electron will only load your app from "app.asar" instead of its normal search paths
},
},
],
Expand Down

0 comments on commit 8cfc9c1

Please sign in to comment.