Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-installer-common

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-installer-common - npm Package Compare versions

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 @@

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc