Skip to content

Update Arch and .deb installs from the app, through the system password prompt - #281

Merged
broisnees merged 1 commit into
nightlyfrom
linux-self-update
Nov 17, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
linux-self-update

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Linux package installs couldn't update from the app: since #277 they only showed yay -Syu .... This makes them update the way T3 Code's do: download in the background, then install through the system password prompt (pkexec).

App (updates.rs)

  • Works out how this copy was installed: a running AppImage, the AUR package (from pacman's local db, Nightly or Stable by the running binary), a .deb on a system with dpkg, an .rpm with rpm, or something else.
  • Each takes its own feed entry: linux-x86_64-pacman, linux-x86_64-deb, linux-x86_64-rpm. The AppImage keeps linux-x86_64.
  • Restart installs: Arch with pkexec pacman -U --noconfirm (pacman records the version, so yay sees it as current), .deb/.rpm through the updater plugin's own pkexec path. A closed password prompt says so and installs nothing.
  • A feed without the entry (older releases, or Stable until release.yml does the same) falls back to the command/download offer from Don't self-update AUR, .deb and .rpm installs; show the package manager command instead #277. Never installs on quit (that needs a prompt).
  • UpdateInfo.needsPassword: the dialog says "Your system asks for your password first."

Nightly pipeline

  • Signs the .deb.
  • New build-pacman job in an archlinux container builds the same package as the AUR (PKGBUILD.in, from this build's .deb) with makepkg and signs it.
  • latest.json gains linux-x86_64-deb and linux-x86_64-pacman; publish waits for the Arch package.

cargo check, svelte-check, design-lint and the 1799 tests pass. The pipeline and the pkexec install are first exercised by this Nightly; the end-to-end check is updating an Arch install from the app on the following Nightly.

@broisnees
broisnees merged commit dc94c4b into nightly Nov 17, 2026
1 check passed
@broisnees
broisnees deleted the linux-self-update branch November 17, 2026 09:00
broisnees pushed a commit that referenced this pull request Nov 17, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant