mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: electron path for postinstall (backport: 3-0-x) (#14197)
* fix #14127 issue caused by #12426 * add ELECTRON_OVERRIDE_DIST_PATH check for install.js
This commit is contained in:
@@ -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