Skip to content

Commit d08d967

Browse files
committed
change pack scripts
Signed-off-by: Adam Setch <[email protected]>
1 parent 6b46829 commit d08d967

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/afterPack.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('node:path');
22
const fs = require('node:fs');
3-
const { chmodSync, chownSync } = require('node:fs');
3+
const { chmodSync } = require('node:fs');
44
const { AfterPackContext } = require('electron-builder');
55

66
const packageJson = require('../package.json');
@@ -74,7 +74,6 @@ const fixChromeSandboxPermissions = (appOutDir) => {
7474
const chromeSandboxPath = path.join(appOutDir, 'chrome-sandbox');
7575

7676
try {
77-
chownSync(chromeSandboxPath, 0, 0); // Set root ownership
7877
chmodSync(chromeSandboxPath, 0o4755); // Set SUID bit
7978
// biome-ignore lint/suspicious/noConsoleLog: disabled
8079
console.log('[afterPack]: Fixed chrome-sandbox permissions');

0 commit comments

Comments
 (0)