fix(electron): ship loginManager.js in the packaged app (#3292 regression) (#3334)

#3292 added electron/loginManager.js and a require("./loginManager") in
main.js but did not add it to electron-builder's build.files allowlist, so
the packaged app crashed at startup with "Cannot find module './loginManager'"
on the Linux/macOS smoke tests (v3.8.13 Electron release fragment).

Add loginManager.js to build.files, plus a regression test that asserts every
local require("./x") in the Electron entry points is shipped.
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-06-06 20:50:02 -03:00
committed by GitHub
parent a25d5f1ef6
commit cd89ce3cfa
2 changed files with 40 additions and 1 deletions

View File

@@ -51,6 +51,7 @@
"files": [
"main.js",
"preload.js",
"loginManager.js",
"sqlite-inspection.js",
"package.json",
"node_modules/**/*"