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:
parent
92f3d47ab3
commit
4e3aa2e061
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue