We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b46829 commit d08d967Copy full SHA for d08d967
scripts/afterPack.js
@@ -1,6 +1,6 @@
1
const path = require('node:path');
2
const fs = require('node:fs');
3
-const { chmodSync, chownSync } = require('node:fs');
+const { chmodSync } = require('node:fs');
4
const { AfterPackContext } = require('electron-builder');
5
6
const packageJson = require('../package.json');
@@ -74,7 +74,6 @@ const fixChromeSandboxPermissions = (appOutDir) => {
74
const chromeSandboxPath = path.join(appOutDir, 'chrome-sandbox');
75
76
try {
77
- chownSync(chromeSandboxPath, 0, 0); // Set root ownership
78
chmodSync(chromeSandboxPath, 0o4755); // Set SUID bit
79
// biome-ignore lint/suspicious/noConsoleLog: disabled
80
console.log('[afterPack]: Fixed chrome-sandbox permissions');
0 commit comments