Skip to content

Commit

Permalink
Use x64 flag for fuses
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Feb 4, 2024
1 parent 27d673f commit d9fd87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/afterPack.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function addElectronFuses(context) {

await flipFuses(electronBinaryPath, {
version: FuseVersion.V1,
resetAdHocDarwinSignature: electronPlatformName === "darwin" && arch === Arch.universal,
resetAdHocDarwinSignature: electronPlatformName === "darwin",
[FuseV1Options.EnableCookieEncryption]: true,
[FuseV1Options.RunAsNode]: false,
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
Expand All @@ -43,7 +43,7 @@ async function addElectronFuses(context) {

module.exports = async (context) => {
console.log(`Checking package: ${context.electronPlatformName} @ ${context.arch}`);
if (context.electronPlatformName !== "darwin" || context.arch === Arch.universal) {
if (context.electronPlatformName !== "darwin" || context.arch === Arch.x64) {
await addElectronFuses(context);
}
};

0 comments on commit d9fd87e

Please sign in to comment.