Provide an easy way to use a local build of Electron (#12426)

* Provide an easy way to use a local build of Electron

For instance from ~/projects/electron/out/D

* document ELECTRON_OVERRIDE_DIST_PATH

* Make the linter happy

* Tweak ELECTRON_OVERRIDE_DIST_PATH docs
This commit is contained in:
Samuel Attard 2018-03-25 15:03:17 +11:00 committed by Shelley Vohr
parent cfd91a3b56
commit 2e5cb930de
4 changed files with 31 additions and 8 deletions

View file

@ -52,12 +52,12 @@ function getPlatformPath () {
switch (platform) {
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:
throw new Error('Electron builds are not available on platform: ' + platform)
}