Skip to content

feat: update Queueify from inside the app - #4

Merged
PAumedes merged 4 commits into
mainfrom
feat/updater
Oct 14, 2026
Merged

PAumedes merged 4 commits into
mainfrom
feat/updater

Conversation

@PAumedes

@PAumedes PAumedes commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Queueify updates itself from the latest GitHub release (ADR-0009).

  • At each start (Settings → Updates turns it off) and from Help → About → Check for updates, the app asks GitHub for the latest release. A newer one is offered in a bar under the page title.
  • Update and restart downloads the exe next to the user's into a new file of its own, checks its SHA-256 against the digest GitHub lists, and replaces the exe in one step (the name is never free; nothing else next to it is written). The window stays, saying so, until the new version's window is open.
  • Failures say why in plain words (English and Spanish) and offer Try again and the release page; a stalled download gives up, a slow one doesn't, and Cancel stops it. A read-only exe is updated too.
  • QUEUEIFY_UPDATE_SERVER (loopback http only) lets tests/ui/Queueify.UpdateUiTests.ps1 serve releases from the test PC.

Tests: UpdaterTests (parsing, versions, check and download failures, planted files and hard links, the name never being free under a squatter thread, read-only exes, stalls and cancellation) and the update UI test (21 checks: offer, refusal, retry, the swap and restart without a gap, focus, a narrow window, the setting, About). Main UI suite green.

Reviewed in three rounds (correctness, security, UX). Fixed along the way: a planted .download, URL dot segments, a charset crash, the moment without an exe, the .old hard link, the bar squeezing the title, no retry, the gap at restart, focus jumps. The remaining minors are fixed in a follow-up.

Builds on #3 (LZMA).

🤖 Generated with Claude Code

At start (unless turned off) and from About, the app asks GitHub for the
latest release. Update and restart downloads its exe next to the user's,
checks it against GitHub's SHA-256, swaps the two and restarts through it.
A folder it can't write to gets the release page instead (ADR-0009).
Review round 1. The download is always a new file of its own (no planted
file keeps rights to the exe) from Queueify's releases only, after the
address is read. Any failure is an UpdateException with plain words;
stalls give up, slow downloads don't. Read-only exes update. The offer
has its own row, failures offer Try again, and the window stays until
the new version's is open.
Review round 2. The old exe is copied aside and the new one replaces it
in one step. A failed update moves focus only when it was in the bar.
The download can be cancelled; Restart can't start two copies; a check
asked from About during the one at start reports there; the old window
waits for a new copy's window, not any.
Review round 3. Copying the old exe to <exe>.old wrote through whatever had
that name, possibly a link to the user's own files. The swap is a single
replace, so no backup is needed: older versions are on the releases page.
A Cancel pressed after the last read still cancels.
Base automatically changed from build/lzma to main October 14, 2026 13:14
@PAumedes
PAumedes merged commit 8b4a1e7 into main Oct 14, 2026
1 check passed
@PAumedes
PAumedes deleted the feat/updater branch October 14, 2026 13:15
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.

1 participant