1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +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

@@ -688,6 +688,9 @@ jobs:
- name: Set up Node-gyp
run: python3 -m pip install setuptools
- name: Install electron-hardener
run: cargo install electron-hardener
- name: Print environment
run: |
node --version
@@ -914,6 +917,9 @@ jobs:
- name: Set up Node-gyp
run: python3 -m pip install setuptools
- name: Install electron-hardener
run: cargo install electron-hardener
- name: Print environment
run: |
node --version
@@ -1172,6 +1178,9 @@ jobs:
- name: Set up Node-gyp
run: python3 -m pip install setuptools
- name: Install electron-hardener
run: cargo install electron-hardener
- name: Print environment
run: |
node --version

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"',
);
}
}