Issue Description
On Linux the Qoder Desktop auto-updater can only install .deb/.rpm packages (it uses electron-updater’s DebUpdater). On a system without dpkg/apt — e.g. Arch-based Omarchy — the update is downloaded and verified successfully, but the install step always fails, and the app quits without relaunching.
As a result the update can never be applied, and the “restart to install” prompt reappears on every launch.
Steps to Reproduce
- Install Qoder App 0.4.8 on Linux x64 by extracting the official
Qoder-linux-amd64.debpayload (there is no system package for Qoder). - Launch Qoder. The background update check finds 0.4.9 and downloads it to
~/.cache/qoder-updater/pending/Qoder-linux-amd64.deb(sha256 matches the manifest). - Choose “Restart to install”.
- The workbench closes with reason
update-restartand the app quits with exitCode 0 — it never comes back (relaunch: false). - Launch Qoder again: the same cycle repeats. The download is skipped (already cached), verification succeeds, the prompt appears again, and the app quits again.
Expected Behavior
Either the update gets installed, or the app states that it cannot install the update on this platform and stays open.
Actual Behavior
[DesktopUpdate] Desktop update state changed {"reason":"restart-requested","from":"ready","to":"restart-requested",...}
[DesktopUpdateInstaller] Handing downloaded update to platform installer {"platform":"linux","version":"0.4.9","mode":"linux-package"}
[DesktopUpdateInstaller] Install: isSilent: false, isForceRunAfter: true
[DesktopUpdateInstaller] Executing: command with args: -v,dpkg
[DesktopUpdateInstaller] Executing: command with args: -v,apt
[DesktopUpdateInstaller] Error: Error: Neither dpkg nor apt command found. Cannot install .deb package.
at DebUpdater.doInstall (electron-updater/out/DebUpdater.js:34:32)
at DebUpdater.install (electron-updater/out/BaseUpdater.js:58:25)
at DebUpdater.quitAndInstall (electron-updater/out/BaseUpdater.js:16:34)
[DesktopUpdate] Desktop update state changed {"reason":"install-handoff-failed","from":"installing","to":"error",...}
[App] Application quit lifecycle {"source":"all_windows_closed","phase":"exit_committed","exitCode":0,"relaunch":false,"updateRestarting":false,"completed":true}
Root cause — DebUpdater.doInstall inside resources/app.asar:
if (!this.hasCommand("dpkg") && !this.hasCommand("apt")) {
this.dispatchError(new Error("Neither dpkg nor apt command found. Cannot install .deb package."));
return false;
}
...
if (options.isForceRunAfter) {
this.app.relaunch();
}
The early return false happens before app.relaunch(), so on a system without dpkg/apt the app quits and is never restarted.
The update server keeps assigning the linux-deb-x64 channel, and latest-linux.yml for 0.4.9 contains only Qoder-linux-amd64.deb and Qoder-linux-x86_64.rpm — there is no AppImage or pacman artifact, even though electron-updater’s findFile(provider.resolveFiles(info), "deb", ["AppImage", "rpm", "pacman"]) would accept one, and pacman is available on this system.
Possible fixes: publish an AppImage/pacman artifact for Linux, and/or detect the missing package manager before offering the update, then keep the app running with a clear message instead of closing it.
Screenshots / Screen Recordings
Not applicable — the failure is only visible in the logs quoted above.
Operating System
Omarchy (Arch-based Linux), x86_64. dpkg, apt and rpm are not installed; only pacman is.
Current Qoder Version (Menu → About Qoder → Copy)
Qoder App 0.4.8, Electron 43.1.1, Linux x64.
Workaround used for now: extract the downloaded .deb manually and point the launcher at ~/Applications/qoder-0.4.9/opt/Qoder/qoder.
No coredumps or personal data attached.