Skip to content

Commit

Permalink
refactor: use the -common method
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Mar 8, 2019
1 parent f80b917 commit 2b8e09c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 4 additions & 8 deletions src/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

/**
Expand Down

0 comments on commit 2b8e09c

Please sign in to comment.