I need to create two releases of my electron application:
- A silent installing exe where electron-updater is configured to automatically update in the background.
- An msi where the installed application does not automatically update, but just alerts the user that a new version has been released.
One way for me to do this would be to copy some sort of config into the build directory before I run electron-builder for each of the two builds, and read this config in the application to identify how to handle electron-updater events.
Before I do that I'm trying to identify whether that's the best way or not. Ideally I'd have a variable that I could send in to electron-builder that toggles the electron-updater functionality, but I don't think such a thing exists.
So the question really is:
Is it possible to use build-time variables with an electron application? If so, how?