From 5ccae8447e61cdb2e38e81a2573ee6e5e0f9890a Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Thu, 16 Apr 2020 13:43:46 -0300 Subject: [PATCH] set filemode for chrome-sandbox to reflect the permissions it needs (#254) --- 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, '..',