fix: afterpack.js still broken on Windows -- executableName undefined on Packager #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/afterpack-executable-name-undefined"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Answering "did we ever get Windows to build" -- no, PR #4's fix was incomplete. build-windows still failed after it merged (commit
ede265f9b), now with a NEW error: ENOENT open .../win-unpacked/undefined.exe.Root cause: context.packager.executableName is not declared on the base Packager class in this electron-builder version (checked packager.d.ts) -- it only worked for linux by coincidence (the Linux packager subclass sets it internally; win32/darwin subclasses do not), so the win32/darwin branches silently evaluated to the literal string "undefined".
Switched to packager.appInfo.productFilename -- documented, always-populated, falls back to sanitized productName ("Slash") with no config override needed. One code path for all platforms instead of three separately-behaving ones.