-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
How to use Auto updater ? #336
Comments
OK, i figured it out so i though posting my answer in case someone else is interested.. "build": { and i set up a local http server in iis on port 82 to serve files (need to include .yml in the mime types).
Then when using eg. Electron.AutoUpdater.CheckForUpdatesAsync() it finds the files and tries to update. |
Hello I tried this inside my build params of the electron.manifest.json file. It keeps looking at a local file in the obj\Host called dev_app_update.yml. It is not looking on the remote server I specified. I opened up Fiddler to see if it was making any http requests to the server. I am running the latest version of Electron.NET. Regards, |
Hi Simon, Yes i forgor to mention that it does not work when running for debugging(electronize start..). You need to build for release (electronize build...) |
Do you prompt the user to download it if an update is found or do you automatically download it? Does that method prompt the user |
If you use it without any other AutoUpdater configuration it will download the update too and install it |
I see it is the base Electron.NET update information and not my application. Seems like this feature has not been implemented 100% yet... |
where do you see that? i got it working the way i said above.. |
I rebuilt it once again and now I see my info. Thanks. Let me see where this goes ;) |
Ok I see it is processing now. I added the YML file to the mime types. Do you then prompt the user to download or force it on them. |
For that, it depends on what you want to do. I show a message that there is an update available and will be installed once the app quits and use QuitAndInstall method. You can see the available methods if you go inside AutoUpdater Class: |
Kudo for that! And it works with an Azure blob storage. |
Please have a look at electron-builder. You can find the configuration for this under the new https://www.electron.build/auto-update We have an sample in our API Demo App too: |
hi i am very new to electron and node ,unable to implement auto update please help... |
@sachinmakhre Please refer to the instructions on the Internet for electron builder - Auto Update. This can be used 1:1 with Electron.NET. |
thanks Gregor ! replying in very short time |
@sachinmakhre You could do something like this.
This examples assumes that you have set up the update-server correctly as described above. |
I understand that this is not the place to ask questions, but i cannot understand how to configure Electron.NET to properly use the auto updater feature.
How to setup the remote repo where the update will be?
If you cannot answer here, please point to the right direction.. :)
Thanks!
The text was updated successfully, but these errors were encountered: