Socket
Socket
Sign inDemoInstall

electron-prebuilt

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-prebuilt - npm Package Compare versions

Comparing version 0.25.1 to 0.25.2

cli.js

15

install.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

var arch = os.arch()
var version = '0.25.1'
var version = '0.25.2'
var filename = 'electron-v' + version + '-' + platform + '-' + arch + '.zip'

@@ -26,14 +26,2 @@ var url = 'https://github.com/atom/electron/releases/download/v' + version + '/electron-v' + version + '-' + platform + '-' + arch + '.zip'

var shebang = {
darwin: '#!/bin/bash\n',
linux: '#!/bin/bash\n',
win32: ''
}
var argv = {
darwin: '"$@"',
linux: '"$@"',
win32: '%*' // does this work with " " in the args?
}
if (!paths[platform]) throw new Error('Unknown platform: ' + platform)

@@ -44,3 +32,2 @@

fs.writeFileSync(path.join(__dirname, 'path.txt'), paths[platform])
fs.writeFileSync(path.join(__dirname, 'run.bat'), shebang[platform] + '"' + paths[platform] + '" ' + argv[platform])
extract(path.join(__dirname, filename), {dir: path.join(__dirname, 'dist')}, function (err) {

@@ -47,0 +34,0 @@ if (err) return onerror(err)

{
"name": "electron-prebuilt",
"version": "0.25.1",
"version": "0.25.2",
"description": "Install electron (formerly called atom-shell) prebuilts using npm",

@@ -14,3 +14,3 @@ "repository": {

"bin": {
"electron": "run.bat"
"electron": "cli.js"
},

@@ -17,0 +17,0 @@ "main": "index.js",

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