mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: electron path for postinstall (#14177)
* fix #14127 issue caused by #12426 * add ELECTRON_OVERRIDE_DIST_PATH check for install.js
This commit is contained in:
committed by
Shelley Vohr
parent
466fe816d5
commit
59e118925a
@@ -17,7 +17,9 @@ try {
|
||||
|
||||
var platformPath = getPlatformPath()
|
||||
|
||||
if (installedVersion === version && fs.existsSync(path.join(__dirname, platformPath))) {
|
||||
var electronPath = process.env.ELECTRON_OVERRIDE_DIST_PATH || path.join(__dirname, 'dist', platformPath)
|
||||
|
||||
if (installedVersion === version && fs.existsSync(electronPath)) {
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user