[MM-59046] Flip fuses for cookie encryption, node options and ASAR integrity (#3094)
This commit is contained in:
parent
2649c31962
commit
e3109c4718
|
@ -43,6 +43,11 @@ exports.default = async function afterPack(context) {
|
|||
version: FuseVersion.V1,
|
||||
[FuseV1Options.RunAsNode]: false, // Disables ELECTRON_RUN_AS_NODE
|
||||
[FuseV1Options.EnableNodeCliInspectArguments]: false, // Disables --inspect
|
||||
[FuseV1Options.EnableCookieEncryption]: true,
|
||||
[FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false, // Disables NODE_OPTIONS and NODE_EXTRA_CA_CERTS
|
||||
// Can only verify on macOS right now, electron-builder doesn't support Windows ASAR integrity verification
|
||||
[FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: context.electronPlatformName === 'darwin' || context.electronPlatformName === 'mas',
|
||||
[FuseV1Options.OnlyLoadAppFromAsar]: true,
|
||||
});
|
||||
|
||||
if (context.electronPlatformName === 'linux') {
|
||||
|
|
Loading…
Reference in a new issue