What is main difference between electron-builder and electron-packager. Is there some example projects for both? Which is better for standalone .exe application build?
Update August 2019
I've been using electron-builder for more than a year now, packaging my app for macOS, Windows 10, and Ubuntu Desktop. The maintainer, develar, added a great docs site earlier this year, and has been staying on top of gatekeeper changes to macOS to ensure installers and updaters still work.
Update November 2018
The primary developer of electron-builder has continued to put substantial work into the project, including support for Electron 3, new artifact publishing destinations, and releases regularly with bug fixes. The prior maintainer stepped down from electron-packager, and they still don't have a windows maintainer, and still doesn't have support for signed windows binaries. For reference:
electron-packager ( 72 releases, 17 open issues, 639 closed)
electron-builder (651 releases, 399 open issues, 2,603 closed)
Update December 2017
Electron-builder has been robustly worked on over the past year, pushing out new versions with features and bugfixes weekly. The documentation at https://www.electron.build/ is excellent, and following the "Quick Setup Guide" (on the first page, several sections down) includes a boilerplate project and step-by-step instructions.
Update June 2017
electron-builder
does both the packaging step (like what electron-packager
does), and builds platform-specific installers (like pkg
or Mac AppStore for Mac, NSIS or Windows Store for windows, and AppImage for linux).
For my existing project, electron-forge
failed with a "missing dependency" that was present in my package.json
and node_modules
).
It's not well documented, but electron-builder
switched from Squirrel.windows to NSIS earlier this year as the default windows installer. NSIS makes substantially smaller installer packages (30mb down from 90mb, in my project's case).
Original post
As of March 2017, in large part, they've got feature parity. I've found the following: