On Linux, update the chrome-sandbox permissions when we package the app - attempt 2

This commit is contained in:
Ben Gotow 2021-04-15 16:48:38 -05:00
parent 501852f07f
commit 0df7760012

View file

@ -45,7 +45,7 @@ module.exports = grunt => {
*/
function runUpdateSandboxHelperPermissions(buildPath, electronVersion, platform, arch, callback) {
// https://github.com/electron-userland/electron-installer-common/blob/feaf7a9b4c947e8838befc8772da71903990c652/src/sandboxhelper.js
const helperPath = path.resolve(buildPath, 'chrome-sandbox');
const helperPath = path.resolve(buildPath, '..', 'chrome-sandbox');
if (fs.existsSync(helperPath)) {
console.log('---> Changing chrome-sandbox permissions');
fs.chmodSync(helperPath, 0o4755);