electron-prebuilt
Advanced tools
Comparing version 0.25.0 to 0.25.1-1
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
var arch = os.arch() | ||
var version = '0.25.0' | ||
var version = '0.25.1' | ||
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.0", | ||
"version": "0.25.1-1", | ||
"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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
4663
40
2