Fix path for chrome-sandbox chmod (#1091)

This commit is contained in:
Evan Simkowitz 2024-10-21 13:29:15 -07:00 committed by GitHub
parent 6f19a3effa
commit 8dbb1f90d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,9 +112,8 @@ const config = {
.filter((f) => f.isFile() && f.name.startsWith("wavesrv"))
.forEach((f) => fs.chmodSync(path.resolve(f.parentPath ?? f.path, f.name), 0o755)); // 0o755 corresponds to -rwxr-xr-x
} else if (context.electronPlatformName === "linux") {
const chromeSandboxPath = path.resolve(context.appOutDir, "Wave", "chrome-sandbox");
const chromeSandboxPath = path.resolve(context.appOutDir, "chrome-sandbox");
fs.chmodSync(chromeSandboxPath, 0o4755);
fs.chownSync(chromeSandboxPath, 0, 0);
}
},
};