diff --git a/script/package.ts b/script/package.ts index b7c34acfd45..faf40d122de 100644 --- a/script/package.ts +++ b/script/package.ts @@ -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, '..',