Skip to content

Commit

Permalink
set filemode for chrome-sandbox to reflect the permissions it needs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed May 16, 2020
1 parent 0e25017 commit 5ccae84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ function generateChecksums() {
}

function packageLinux() {
const helperPath = path.join(getDistPath(), 'chrome-sandbox')
const exists = fs.pathExistsSync(helperPath)

if (exists) {
console.log('Updating file mode for chrome-sandbox…')
fs.chmodSync(helperPath, 0o4755)
}

const electronBuilder = path.resolve(
__dirname,
'..',
Expand Down

0 comments on commit 5ccae84

Please sign in to comment.