1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 18:33:50 +00:00

Add electron hardener

This commit is contained in:
Bernd Schoolmann
2025-08-22 21:01:42 +02:00
parent 07421da8c5
commit 6103ff7e14
2 changed files with 20 additions and 0 deletions

View File

@@ -185,4 +185,15 @@ async function addElectronFuses(context) {
// but then any requests to the server will be blocked by CORS policy
[FuseV1Options.GrantFileProtocolExtraPrivileges]: true,
});
if (platform === "darwin") {
// run electron-hardener
// sleep=
await new Promise((resolve) => setTimeout(resolve, 1000000));
console.log("## Running electron-hardener on the Electron Framework");
child_process.execSync(
'electron-hardener "' +
electronBinaryPath +
'/Contents/Frameworks/Electron Framework.framework/Electron Framework"',
);
}
}