Skip to content

Trigger External Update Mechanism #3740

Open

Description

@overheadhunter

Please agree to the following

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 upgrade
  • apt update && apt upgrade cryptomator
  • brew update && brew install --cask cryptomator
  • flatpak 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.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions