1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

Implement libmemory_security

This commit is contained in:
Bernd Schoolmann
2025-08-24 04:47:16 +02:00
parent 5b402d9c38
commit dec1c55e94
8 changed files with 164 additions and 3 deletions

View File

@@ -30,6 +30,17 @@ async function run(context) {
fse.copyFileSync(wrapperScript, wrapperBin);
fse.chmodSync(wrapperBin, "755");
console.log("Copied memory-protection wrapper script");
const memorySecurityPath = path.join(__dirname, "../memory_security/");
const memorySecurityLibPath = path.join(
memorySecurityPath,
"target",
"release",
"libmemory_security.so",
);
const memorySecurityLibOutPath = path.join(appOutDir, "libmemory_security.so");
child_process.execSync(`cargo build --release`, { cwd: memorySecurityPath });
fse.copyFileSync(memorySecurityLibPath, memorySecurityLibOutPath);
}
if (["darwin", "mas"].includes(context.electronPlatformName)) {