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

Package updates #17

Closed
nazar-pc opened this issue Dec 6, 2023 · 2 comments · Fixed by #78
Closed

Package updates #17

nazar-pc opened this issue Dec 6, 2023 · 2 comments · Fixed by #78
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers infra Infrastructure (CI, etc.) packaging Related to packaging/installer ux UX-related

Comments

@nazar-pc
Copy link
Member

nazar-pc commented Dec 6, 2023

Not sure if it would be worth it to build updater infrastructure, though depending on options chosen for #6 (OBS), #7 (Homebrew) and Windows (Chocolatey) it might be possible to get this cheaply.

Either way the first step would be to add functionality to check availability of a newer release on GitHub periodically and show something to the user so that they can go and download new version, which shouldn't be too difficult. Desktop notifications would be especially nice here since application can be minimized.

@nazar-pc nazar-pc added enhancement New feature or request good first issue Good for newcomers packaging Related to packaging/installer ux UX-related infra Infrastructure (CI, etc.) labels Dec 6, 2023
@nazar-pc
Copy link
Member Author

MSIX on Windows can apparently support auto-updates, didn't look into it very closely though.

@nazar-pc
Copy link
Member Author

nazar-pc commented Jan 5, 2024

For now the following should be done:

  • downloading https://api.github.com/repos/nazar-pc/space-acres/releases/latest (with reqwest, URL might also be inferred from repository in Cargo.toml so it works in forks too and is not hardcoded)
  • checking tag_name field
  • try to parse it with semver
  • compare with the version of the app itself
  • in case new version is newer, show it somewhere with a link to releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers infra Infrastructure (CI, etc.) packaging Related to packaging/installer ux UX-related
Projects
Status: Complete
Development

Successfully merging a pull request may close this issue.

1 participant