diff --git a/package.json b/package.json index 504e2ac..6e644cb 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "dependencies": { "debug": "^4.1.1", - "electron-installer-common": "^0.6.1", + "electron-installer-common": "^0.6.2", "fs-extra": "^7.0.1", "lodash": "^4.17.4", "nodeify": "^1.0.1", diff --git a/src/installer.js b/src/installer.js index 36c8e57..b2394f0 100644 --- a/src/installer.js +++ b/src/installer.js @@ -45,17 +45,13 @@ class RedhatInstaller extends common.ElectronInstaller { get specPath () { return path.join(this.stagingDir, 'SPECS', `${this.options.name}.spec`) } - + /** * Copy the application into the package. */ - async copyApplication () { - await super.copyApplication() - - // The sandbox helper executable must have the setuid (+s / 0o4000) bit set. - const sandboxHelperPath = path.join(this.stagingDir, 'chrome-sandbox') - if (await fs.exists(sandboxHelperPath)) - await fs.chmod(sandboxHelperPath, 0o4755) + copyApplication () { + return super.copyApplication() + .then(() => this.updateSandboxHelperPermissions()) } /**