From 7e361de2f955dfaaf55ddc1b16da5dfa2c8bd8f8 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 14 Apr 2020 17:11:26 -0300 Subject: [PATCH] set filemode for chrome-sandbox to reflect the permissions it needs --- script/package.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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, '..',