Repository navigation
feat: update Queueify from inside the app - #4
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Queueify updates itself from the latest GitHub release (ADR-0009).
QUEUEIFY_UPDATE_SERVER(loopback http only) letstests/ui/Queueify.UpdateUiTests.ps1serve 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.oldhard 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