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

Auto-Updater for Windows #539

Open
ncavallini opened this issue Nov 5, 2024 · 3 comments
Open

Auto-Updater for Windows #539

ncavallini opened this issue Nov 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ncavallini
Copy link

ncavallini commented Nov 5, 2024

Is your feature request related to a problem? Please describe.
Backrest releases come out pretty often. I've installed it on many computers and it's quite hard to keep track of which version is installed where.

Describe the solution you'd like
It'd be nice to have an auto-updater component for the Windows version (letting the user choose if automatic installation can be done or just notify of the update).

Additional context
Could implement it pretty easily just by periodically querying the GitHub API. The hard(er) part is to determine the currently installed version.

@ncavallini ncavallini added the enhancement New feature or request label Nov 5, 2024
@brokoler
Copy link

brokoler commented Nov 15, 2024

Hi,

for Windows the most easy way would be to add Backrest to Winget, it acts similar to Linux package managers.
In that case no additional software has to be programmed for auto updating, also Winget is preinstalled since Windows 10 and auto-updating is possible via task scheduler. That would not only make updating easier, but also the installation process:

Installation of Backrest via Winget
winget install backrest

Update of Backrest via Winget:
winget update backrest

@garethgeorge
Microsoft describes the steps required to publish software to Winget, probably it's possible for you to check the guidelines?
https://learn.microsoft.com/en-us/windows/package-manager/package/?WT.mc_id=modinfra-30991-salean
Also thanks for your great software, it makes Restic finally usable for me!

Edit:
rclone is also part of Winget and doesn't provide an updater software on it's own:
grafik

@ncavallini
Copy link
Author

Great idea, didn't think of that. Btw, is it possible to mantain the config (now I'm running the version download from the Releases here on GitHub)?

Thank you

@homandr
Copy link
Contributor

homandr commented Nov 18, 2024

Just wanted to share an alternative idea to winget. George, you already have the code to download restic from github. You can probably use the same code to update backrest.exe and backrest-windows-tray.exe from github (and not depend on Microsoft approving your app). From what I'm reading, in order for a running process to update itself on Windows, it needs to rename the old exe to a different name, then download the new version with the correct name.

My guess is that you want the self-update process to be portable across all operating systems. I assume this is what you currently have with restic binary.

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

3 participants