electron-installer-common
Advanced tools
Comparing version 0.6.1 to 0.6.2
10
NEWS.md
@@ -5,4 +5,12 @@ # `electron-installer-common` - Changes by Version | ||
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.6.1...master | ||
[Unreleased]: https://github.com/electron-userland/electron-installer-common/compare/v0.6.2...master | ||
## [0.6.2] - 2019-03-07 | ||
[0.6.2]: https://github.com/electron-userland/electron-installer-common/compare/v0.6.1...v0.6.2 | ||
### Added | ||
* Sandbox helper permission updater (#16) | ||
## [0.6.1] - 2019-02-19 | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "electron-installer-common", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Common functionality for creating distributable Electron apps", | ||
@@ -5,0 +5,0 @@ "author": "Mark Lee", |
@@ -53,2 +53,5 @@ 'use strict' | ||
/** | ||
* The directory that the bundled application is copied to, relative to `stagingDir`. | ||
*/ | ||
get stagingAppDir () { | ||
@@ -223,4 +226,26 @@ return path.join(this.stagingDir, this.baseAppDir, 'lib', this.appIdentifier) | ||
} | ||
/** | ||
* For Electron versions that support the setuid sandbox on Linux, changes the permissions of | ||
* the `chrome-sandbox` executable as appropriate. | ||
* | ||
* The sandbox helper executable must have the setuid (`+s` / `0o4000`) bit set. | ||
* | ||
* This doesn't work on Windows because you can't set that bit there. | ||
* | ||
* See: https://github.com/electron/electron/pull/17269#issuecomment-470671914 | ||
*/ | ||
updateSandboxHelperPermissions () { | ||
const sandboxHelperPath = path.join(this.stagingAppDir, 'chrome-sandbox') | ||
return fs.pathExists(sandboxHelperPath) | ||
.then(exists => { | ||
if (exists) { | ||
return fs.chmod(sandboxHelperPath, 0o4755) | ||
} else { | ||
return Promise.resolve() | ||
} | ||
}) | ||
} | ||
} | ||
module.exports = ElectronInstaller |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34904
522