bug: Auto-updater downloads `.deb` package on non-Debian systems
Summary
Tauri's built-in updater (tauri-plugin-updater) checks https://github.com/different-ai/openwork/releases/latest/download/latest.json and downloads a .deb package. On Arch Linux (and any non-Debian distro), this package format is unusable, has no root privileges to install, and would overwrite all user-applied fixes.
To Reproduce
- Install OpenWork on Arch Linux (or any non-Debian distro)
- Allow the auto-updater to run
- Updater downloads a
.debfile - Installation fails — wrong package format, no dpkg, no root access
Expected behavior
The updater should either:
- Detect the Linux distribution and download the appropriate format
- Provide a generic binary / AppImage option
- Disable itself gracefully when the package format is incompatible
- Allow deferring updates to the system package manager
Actual behavior
The updater unconditionally downloads a .deb package regardless of the host distribution. The update fails silently or with a permission error. On systems that have applied manual fixes, a successful update would also overwrite all of them.
OW version & Desktop info
- OpenWork: 0.11.194-1 (AUR)
- OS: Arch Linux x86_64
Additional context
Workaround: binary-patch the updater endpoint URL in the ELF to point to https://127.0.0.1:1/... (connection always refused), and disable updateAutoCheck + updateAutoDownload in localStorage.
Original URL: https://github.com/different-ai/openwork/releases/latest/download/latest.json
Patched URL: https://127.0.0.1:1/arch-linux-updater-disabled-----use-pacman-to-update.json
Note: an earlier patch used http:// which Tauri later started rejecting during plugin init (causing a startup panic). The patch must use https://.
closed due to age, please reopen and tag me if still valid