Skip to content
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

Improve updater setup #57

Open
clearlysid opened this issue Apr 29, 2024 · 1 comment
Open

Improve updater setup #57

clearlysid opened this issue Apr 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@clearlysid
Copy link
Collaborator

clearlysid commented Apr 29, 2024

Hmm, wondering why not just do a simple

 "check_updates" => {
                    let w = app.get_window("main").unwrap();
                    w.trigger_global("tauri://update", None);
                }    

and let Tauri handle the rest? @clearlysid

Originally posted by @rajatkulkarni95 in #42 (comment)

@clearlysid clearlysid added the enhancement New feature or request label Apr 29, 2024
@rajatkulkarni95
Copy link

rajatkulkarni95 commented Apr 29, 2024

You can also trigger this with the same tauri://update string on the FE, and do it with a setInterval if you want periodic checks instead of just on startup or explicit click.

I do all 3 for Octarine, with periodic being every few hours. Since I'm assuming Helmer would likely be an always open app, so waiting on the user to click update might be less fruitful if you push multiple updates in a week!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants