Skip to content

feat: auto update feature with linux deb support#117

Open
farfromrefug wants to merge 20 commits intoTomBadash:masterfrom
farfromrefug:copilot/implement-auto-update-feature
Open

feat: auto update feature with linux deb support#117
farfromrefug wants to merge 20 commits intoTomBadash:masterfrom
farfromrefug:copilot/implement-auto-update-feature

Conversation

@farfromrefug
Copy link
Copy Markdown
Contributor

Auto-updater module with:

  • Update check: Fetches latest.json from the GitHub release, compares semver, emits status via callbacks
  • Platform detection: Chooses macos-arm64, macos-x86_64, windows-x64, linux-deb (if dpkg present), or linux-zip
  • macOS install: Extracts .app from zip, atomically replaces the running bundle, applies ad-hoc codesign
  • Linux .deb install: pkexec apt install -y or pkexec dpkg -i (PolicyKit root prompt) — falls back to showing the path for manual install
  • Linux .zip install: Schedules a shell replacement script that runs after app exits
  • Windows install: Schedules a robocopy batch script that runs after app exits and relaunches

Backend, QML, tray

  • Settings toggle for Auto-update (on by default), auto-check on startup and every 24h after
  • Updates card in the Point & Scroll settings page: status text, download progress bar, Check/Download&Install/Restart buttons
  • Check for Update tray menu entry

build_deb.sh

Builds a minimal .deb from dist/Mouser/, stripping unnecessary bundled system libs, creating a proper desktop entry, icons, and maintainer scripts.

Release workflow

  • Linux build also installs dpkg-dev + imagemagick, runs build_deb.sh, uploads Mouser-Linux.deb
  • Release job generates latest.json and uploads it alongside all binaries

farfromrefug and others added 20 commits April 7, 2026 14:32
…esigned release workflow

Agent-Logs-Url: https://github.com/farfromrefug/Mouser/sessions/4e733f59-ca74-44a4-8141-f542d4980cae

Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com>
… latest.json

Agent-Logs-Url: https://github.com/farfromrefug/Mouser/sessions/4e733f59-ca74-44a4-8141-f542d4980cae

Co-authored-by: farfromrefug <655344+farfromrefug@users.noreply.github.com>
…ature' into copilot/implement-auto-update-feature

# Conflicts:
#	.github/workflows/release.yml
@thisislvca thisislvca self-assigned this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants