mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
The module-level require of @electron-internal/extract-zip runs before isInstalled() and before ELECTRON_OVERRIDE_DIST_PATH is read. When an OS policy blocks the dlopen of the bundled native binding, install.js dies on line 5 and no short-circuit can help (#52481). Move the require into extractFile(). An installed dist now passes isInstalled() without loading the extractor, and the environment overrides work again.