Skip to content

[feat] Updater should handle unmanaged install modes better #4573

@betamos

Description

@betamos

Describe the problem

When running the updater with default settings (dialog: true), it will prompt to download & install and fail silently if running e.g. as a .deb. The biggest issue is that this is confusing:

  • It offers to do something it cannot do.
  • It doesn't report the failure to the user.

Describe the solution you'd like

A few options:

  • unmanaged install, unmanaged updates (msi, appimage, dmg): search & prompt to install (works today)
  • managed install, unmanaged updates (deb*, rpm*):
    • search for updates & offer to open download link in browser (tauri.conf.json field?) or
    • search for updates, download and launch the installer for the user, and let the user authenticate etc
  • managed install, managed updates (mac app store & windows store?): don't search for updates (fully managed)
  • N/A (dev mode): don't search for updates at all?

*: don't know if possible to tell the difference between "deb repository url" which IS managed or ad-hoc installed deb (most common today I assume). If it's not feasible, it could be best to not search at all.

Alternatives considered

No response

Additional context

An additional issue is that we only have one url per [target, arch] tuple, which is hard to extend. E.g. linux infers appimage. This would make it tricky to add support for e.g. automatic deb downloads.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions