ckerr

#48634: fix: logical bug in install.js env var handling

Merged
Created: Oct 22, 2025, 12:25:05 PM
Merged: Oct 27, 2025, 5:23:45 AM
4 comments
Target: main

Description of Change

If either NPM_CONFIG_ELECTRON_USE_REMOTE_CHECKSUMS or ELECTRON_USE_REMOTE_CHECKSUMS are set as environment variables, then force Electron to verify with remote checksums instead of embedded ones.

Fixes #48594.

Thanks to @KinshukSS2 for reporting this and suggesting a solution.

Checklist

Release Notes

Notes: Fixed an error when checking environmental variables when using remote checksums when installing Electron via npm.

Backports

37-x-y
Merged
PR Number
#48671
Merged At
Oct 27, 2025, 12:52:08 PM
Released In
Not yet
Release Date
Not yet
38-x-y
Merged
PR Number
#48672
Merged At
Oct 27, 2025, 1:47:55 PM
Released In
Not yet
Release Date
Not yet
39-x-y
Merged
PR Number
#48673
Merged At
Oct 27, 2025, 7:35:56 AM
Released In
v39.0.0
Release Date
Oct 27, 2025, 3:16:47 PM

Semver Impact

Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.

Semantic Versioning helps users understand the impact of updates:

  • Major (X.y.z): Breaking changes that may require code modifications
  • Minor (x.Y.z): New features that maintain backward compatibility
  • Patch (x.y.Z): Bug fixes that don't change the API
  • None: Changes that don't affect using facing parts of Electron