-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditionally enable electron-updater based on target (disable for MSI) #4384
Comments
This is how we are doing this currently. Probably not the best method but its working for our separate release builds (standalone vs app store)
Actually upon second read of your question im not sure if this is what you're looking for, your use case is different than ours. :P Ill leave it up for others just in case. |
My current solution is to have a separate CLI invocation to build the MSI installer, With electron-webpack, I used the following to read that value at runtime:
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I think there is a code change that can make this better as this problem doesn't seem to be uncommon, but I am unfamiliar with how electron-builder works under the hood, so thoughts from @develar would help. Happy to help implement a solution with guidance. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@saifelse Have you found a better solution than having a separate client invocation? |
I'm building an app where I'm targetting both NSIS and MSI (and DMG for macOS). NSIS for individual per-user download, and MSI for per-machine when installed by a customer's IT. The NSIS can auto-update, and the MSI would not. I'm also considering a per-machine NSIS that would auto-update.
If I install an older version of the app via an MSI installer and then blindly call
autoUpdater.checkForUpdatesAndNotify()
, the prompt to install the new version still happens, and when I quit the app, it looks like it installs the newer version with the NSIS installer, resulting in there being two installations, the newer one being per-user which is not ideal.It seems like I need to conditionally handle what my target is? It seems like I'd like to either expose the target in some way to the runtime, or, possibly more generally be able to define extraMetadata per-target... but as @develar mentioned in #1955, it looks like this would require multiple CLI invocations?
Practically speaking, what are the downsides of splitting out a separate CLI invocation for MSI where I use
--em
? Right now, I'm using electron-webpack, publish to S3 and perform code signing (and soon to add notarizing).Alternatively, @develar mentioned this as a possibility:
Is there a possibility that this would be useful in my scenario?
Thanks!
The text was updated successfully, but these errors were encountered: