openwork icon indicating copy to clipboard operation
openwork copied to clipboard

bug: Auto-updater downloads `.deb` package on non-Debian systems

Open pedrohx26 opened this issue 8 months ago • 1 comments

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

  1. Install OpenWork on Arch Linux (or any non-Debian distro)
  2. Allow the auto-updater to run
  3. Updater downloads a .deb file
  4. 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://.

pedrohx26 avatar Mar 30 '26 17:03 pedrohx26

closed due to age, please reopen and tag me if still valid

OmarMcAdam avatar Oct 28 '26 22:10 OmarMcAdam