Skip to content

Commit

Permalink
chore: update make scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed May 14, 2024
1 parent 119e0bc commit 1bf10c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
18 changes: 9 additions & 9 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ export default {
renderer: [{ name: "main_window", config: "vite.renderer.config.js" }],
},
},
// Fuses are used to enable/disable various Electron functionality
// at package time, before code signing the application
// TODO: Fuses configuration for Honeycomb
// Fuses are used to enable/disable various Electron functionality at package time, before code signing the application
new FusesPlugin({
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
[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
}),
],
};
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@
"build:clinic:video": "dotenv -e env/.env.clinic dotenv -e env/.env.video npm run build",
"build:firebase": "dotenv -e env/.env.firebase npm run build",
"build:turk-prolific": "dotenv -e env/.env.turk-prolific npm run build",
"make": "electron-forge make",
"make:windows": "npm run make -- --arch x64 --targets @electron-forge/maker-squirrel",
"make:linux": "npm run make -- --arch x64 --targets @electron-forge/maker-deb",
"make:mac": "npm run make -- --arch universal --targets @electron-forge/maker-dmg",
"make:windows": "electron-forge make --arch x64 --targets @electron-forge/maker-squirrel",
"make:linux": "electron-forge make --arch x64 --targets @electron-forge/maker-deb",
"make:mac": "electron-forge make --arch universal --targets @electron-forge/maker-dmg",
"cli": "node cli.mjs",
"commit": "git-cz",
"format": "prettier --write .",
Expand Down

0 comments on commit 1bf10c1

Please sign in to comment.