Repository navigation
Description
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
Summary
Make Cryptomator aware of external update mechanisms provided by e.g. a package manager
Motivation
Auto-Update is one of the oldest and most discussed feature requests (see #275) with some explorative implementations already done (see #2596, kudos to @purejava for pressing ahead with this).
So far, we failed to find a one-fits-all solution for the variety of supported platforms and package distribution channels.
Therefore I am proposing to add a new Update API with the default (fallback) implementation being the current "redirect user to website" approach. This would allow us to gradually add further implementations, e.g.
- triggering AppImageUpdate
winget upgradeapt update && apt upgrade cryptomatorbrew update && brew install --cask cryptomatorflatpak update org.cryptomator.Cryptomator- ...
The API will probably consist of
- a method to check whether the update mechanism is available in principle
- a method to check whether the update itself is actually already published on the given channel
- a method to trigger the update
- a flag indicating whether elevated permissions or sudo is required during update (so the user can be prepared for a corresponding prompt)
- a display name
On the GUI side I imagine a split button to replace the "Update available" hyperlink. The main button area could say "Update via apt" with alternative options (such as "Download Latest Version from Website") being available via the dropdown. This requires viable display names.
Different distribution packages may then tell the app the preferred update mechanism. E.g. if installed via Flatpak, any sane user most likely wants the update to be done via Flatpak as well.
Considered Alternatives
Continue finding a single self-update solution for all platforms. 🙈
Anything else?
Such a change should also consider #3117 as it may need small adjustments and maybe also #3540.
Activity