electron
Advanced tools
Comparing version 2.0.2 to 3.0.0-beta.1
16
index.js
@@ -6,6 +6,14 @@ var fs = require('fs') | ||
if (fs.existsSync(pathFile)) { | ||
module.exports = path.join(__dirname, fs.readFileSync(pathFile, 'utf-8')) | ||
} else { | ||
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') | ||
function getElectronPath () { | ||
if (fs.existsSync(pathFile)) { | ||
var executablePath = fs.readFileSync(pathFile, 'utf-8') | ||
if (process.env.ELECTRON_OVERRIDE_DIST_PATH) { | ||
return path.join(process.env.ELECTRON_OVERRIDE_DIST_PATH, executablePath) | ||
} | ||
return path.join(__dirname, 'dist', executablePath) | ||
} else { | ||
throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again') | ||
} | ||
} | ||
module.exports = getElectronPath() |
@@ -55,8 +55,8 @@ #!/usr/bin/env node | ||
case 'darwin': | ||
return 'dist/Electron.app/Contents/MacOS/Electron' | ||
return 'Electron.app/Contents/MacOS/Electron' | ||
case 'freebsd': | ||
case 'linux': | ||
return 'dist/electron' | ||
return 'electron' | ||
case 'win32': | ||
return 'dist/electron.exe' | ||
return 'electron.exe' | ||
default: | ||
@@ -63,0 +63,0 @@ throw new Error('Electron builds are not available on platform: ' + platform) |
@@ -15,3 +15,3 @@ { | ||
"@types/node": "^8.0.24", | ||
"electron-download": "^3.0.1", | ||
"electron-download": "^4.1.0", | ||
"extract-zip": "^1.0.3" | ||
@@ -27,4 +27,7 @@ }, | ||
}, | ||
"engines": { | ||
"node": ">= 4.0" | ||
}, | ||
"name": "electron", | ||
"version": "2.0.2", | ||
"version": "3.0.0-beta.1", | ||
"repository": "https://github.com/electron/electron", | ||
@@ -31,0 +34,0 @@ "description": "Build cross platform desktop apps with JavaScript, HTML, and CSS", |
@@ -6,3 +6,2 @@ [![Electron Logo](https://electronjs.org/images/electron-logo.svg)](https://electronjs.org) | ||
[![AppVeyor Build Status](https://windows-ci.electronjs.org/api/projects/status/nilyf07hcef14dvj/branch/master?svg=true)](https://windows-ci.electronjs.org/project/AppVeyor/electron/branch/master) | ||
[![Jenkins Build Status](https://mac-ci.electronjs.org/buildStatus/icon?job=Electron%20org/electron/master)](https://mac-ci.electronjs.org/blue/organizations/jenkins/Electron%20org%2Felectron/activity?branch=master) | ||
[![devDependency Status](https://david-dm.org/electron/electron/dev-status.svg)](https://david-dm.org/electron/electron?type=dev) | ||
@@ -12,3 +11,3 @@ [![Join the Electron Community on Slack](https://atom-slack.herokuapp.com/badge.svg)](https://atom-slack.herokuapp.com/) | ||
:memo: Available Translations: 🇨🇳 🇹🇼 🇧🇷 🇪🇸 🇰🇷 🇯🇵 🇷🇺 🇫🇷 🇹🇭 🇳🇱 🇹🇷 🇮🇩 🇺🇦 🇨🇿 🇮🇹. | ||
View these docs in other languages at [electron/electron-i18n](https://github.com/electron/electron-i18n/tree/master/content/). | ||
View these docs in other languages at [electron/i18n](https://github.com/electron/i18n/tree/master/content/). | ||
@@ -35,7 +34,7 @@ The Electron framework lets you write cross-platform desktop applications | ||
```sh | ||
npm install electron --save-dev --save-exact | ||
npm install electron --save-dev [--save-exact] | ||
``` | ||
The `--save-exact` flag is recommended as Electron does not follow semantic | ||
versioning. For info on how to manage Electron versions in your apps, see | ||
The `--save-exact` flag is recommended for Electron prior to version 2, as it does not follow semantic | ||
versioning. As of version 2.0.0, Electron follows semver, so you don't need `--save-exact` flag. For info on how to manage Electron versions in your apps, see | ||
[Electron versioning](docs/tutorial/electron-versioning.md). | ||
@@ -91,3 +90,3 @@ | ||
Find documentation translations in [electron/electron-i18n](https://github.com/electron/electron-i18n). | ||
Find documentation translations in [electron/i18n](https://github.com/electron/i18n). | ||
@@ -94,0 +93,0 @@ ## Community |
Sorry, the diff of this file is too big to display
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
392315
8933
2
99
13
+ Addeddebug@3.2.7(transitive)
+ Addedelectron-download@4.1.1(transitive)
+ Addedenv-paths@1.0.0(transitive)
+ Addedfs-extra@4.0.3(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedsumchecker@2.0.2(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedelectron-download@3.3.0(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedfs-extra@0.30.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedhome-path@1.0.7(transitive)
- Removedinflight@1.0.6(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-exists@2.1.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsumchecker@1.3.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedelectron-download@^4.1.0