6

Can someone help me with the following queries.

Whats the difference between the two? electron-packager and electron-builder.


I have used both. And both of them creates a .exe file.
But the one created with builder can be used independently(requires no other files)

The problem with the app(created from electron-builder) is that, everytime I run the app(MyApp) on Windows OS, there's something else(interface) that loads up, and then it takes a while for the app to start(maybe around 7-8 secs).

Have attached an image: enter image description here

Why can't I create an installer like other windows application. Where I install it once, and then run it from Programs -> MyApp

Please help/guide

Thank you !!

Anish Nair
  • 3,238
  • 29
  • 41

1 Answers1

6

Whats the difference between the two? electron-packager and electron-builder.

electron-builder includes electron-packager. electron-packager only pack your app, but electron-builder pack, build in distributable format (e.g. dmg, setup exe, AppImage) and publish to GitHub Releases or Bintray.

The problem with the app(created from electron-builder) is that, everytime I run the app(MyApp) on

You should handle Squirrel.Windows events, please see https://github.com/electron/windows-installer#handling-squirrel-events

Why can't I create an installer like other windows application.

Using electron-builder, you can — just set build.win.target to nsis and build.nsis.perMachine to true. Please see all available options — https://github.com/electron-userland/electron-builder/wiki/Options#NsisOptions

develar
  • 955
  • 3
  • 12
  • 16
  • Any idea, about how do you I update the desktop app?? Via Squirrel right? Can you guide me through the same?? Please help !! – Anish Nair Sep 21 '16 at 09:51
  • 1
    If you use Squirrel.Windows target (default) — yes, using Squirrel.Windows. If you use NSIS — auto-update is not yet ready to use. – develar Sep 21 '16 at 12:57
  • Any links you can point me to?? Also to use the auto-update, I would have to then set the `build.win.target` to `squirrel`. But then will it work like an installer(like nsis)? – Anish Nair Sep 22 '16 at 05:48
  • To integrate the auto-update feature into the windows app, one has to build it using Squirrel.Windows. But the problem is when I build it using squirrel, I cant install the app(like the way the NSIS works) – Anish Nair Sep 27 '16 at 05:08
  • can you answer the above comments? – Anish Nair Jun 22 '17 at 05:59