mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
feat: add env variable to skip binary download on npm install (#17627)
* feat: add env variable to skip binary download on npm install * docs: add "Skip binary download" section to install tutorial
This commit is contained in:
committed by
John Kleinschmidt
parent
0a6eb8afca
commit
a59dc56fa6
@@ -15,6 +15,10 @@ try {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
if (process.env.ELECTRON_SKIP_BINARY_DOWNLOAD) {
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
var platformPath = getPlatformPath()
|
||||
|
||||
var electronPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist', platformPath)
|
||||
|
||||
Reference in New Issue
Block a user