mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 19:23:19 +00:00
Add electron hardener
This commit is contained in:
9
.github/workflows/build-desktop.yml
vendored
9
.github/workflows/build-desktop.yml
vendored
@@ -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
|
||||
|
||||
@@ -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"',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user