feat(uploader): check for updates and fetch the single setup

The Uploader had no update check, so an Uploader-only install never heard of
a new version. Its settings panel gains an Updates row driven by the shared
UpdateFlow: Check on start (opt-out, on for 1.0 settings files), Check now,
Download (the single Chronos setup, or the portable zip of a portable copy,
verified against the release's SHA256SUMS) and Show setup (reveals the
verified file in Explorer; the user runs it). The start-up check is skipped
when Chronos.exe sits beside the Uploader, because the desktop's own notice
covers the same setup; Check now still works there. A newer release found on
start is offered in a toast with Download as its action. The capture scene
shows the notice with a sample release.

Refs #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-15 12:55:06 +01:00
1 parent 58ed737310
commit 7181589590
16 files changed
+661 -8

No files matched your search

+12 -1
View File
@@ -919,7 +919,7 @@
<data name="Tooltips.Uploader.RetryItem" xml:space="preserve"><value>Try this file again now</value></data>
<data name="Tooltips.Uploader.SequenceDisabled" xml:space="preserve"><value>Select Sequence to choose one</value></data>
<data name="Tooltips.Uploader.ServerAddress" xml:space="preserve"><value>Address of the Chronos Server, such as https://nas.local:8443</value></data>
<data name="Tooltips.Uploader.Settings" xml:space="preserve"><value>Server, sign in, bandwidth, startup, tray</value></data>
<data name="Tooltips.Uploader.Settings" xml:space="preserve"><value>Server, sign in, bandwidth, startup, tray, updates</value></data>
<data name="Tooltips.Uploader.ShowFailed" xml:space="preserve"><value>Show the first file that failed · press Enter on it to try again</value></data>
<data name="Tooltips.Uploader.SignIn" xml:space="preserve"><value>Check the server certificate and sign in</value></data>
<data name="Tooltips.Uploader.SignOut" xml:space="preserve"><value>Sign out and forget the saved token</value></data>
@@ -929,6 +929,17 @@
<data name="Tooltips.Uploader.TargetSequence" xml:space="preserve"><value>Add every file to one existing sequence</value></data>
<data name="Tooltips.Uploader.TargetSessions" xml:space="preserve"><value>The server splits the files into sessions and creates the sequences</value></data>
<data name="Tooltips.Uploader.Trust" xml:space="preserve"><value>Remember this certificate; trust it only if the fingerprint matches the one on the server</value></data>
<data name="Tooltips.Uploader.Updates.Available" xml:space="preserve"><value>A newer Chronos release exists · Download fetches the setup</value></data>
<data name="Tooltips.Uploader.Updates.Cancel" xml:space="preserve"><value>Stop the download; Download resumes it later from where it stopped</value></data>
<data name="Tooltips.Uploader.Updates.CheckNow" xml:space="preserve"><value>Ask the public releases page for a newer version · a few seconds</value></data>
<data name="Tooltips.Uploader.Updates.CheckOnStart" xml:space="preserve"><value>Look for a newer Chronos release when the Uploader starts · skipped when Chronos Desktop is installed alongside, whose own notice covers the same setup</value></data>
<data name="Tooltips.Uploader.Updates.Download" xml:space="preserve"><value>Download the setup, check it against the release's SHA-256 list and show it in Explorer · {0}</value></data>
<data name="Tooltips.Uploader.Updates.DownloadPage" xml:space="preserve"><value>Open the page of this release in the browser</value></data>
<data name="Tooltips.Uploader.Updates.DownloadPortable" xml:space="preserve"><value>Download the portable zip, check it against the release's SHA-256 list and show it in Explorer · {0}</value></data>
<data name="Tooltips.Uploader.Updates.Failed" xml:space="preserve"><value>The releases page could not be reached · try again later</value></data>
<data name="Tooltips.Uploader.Updates.ShowPortable" xml:space="preserve"><value>Show the verified zip in Explorer; close Chronos and the Uploader and unpack it over this folder to upgrade. The data folder is kept</value></data>
<data name="Tooltips.Uploader.Updates.ShowSetup" xml:space="preserve"><value>Show the verified setup in Explorer; close the Uploader and run it to upgrade. Queue and settings are kept</value></data>
<data name="Tooltips.Uploader.Updates.UpToDate" xml:space="preserve"><value>You run the newest stable release</value></data>
<data name="Tooltips.Uploader.User" xml:space="preserve"><value>Your user name on the Chronos Server</value></data>
<data name="Tooltips.Uploader.WatchFolder" xml:space="preserve"><value>Checked every {0}; a file is uploaded once it has stopped growing · click to change or remove</value></data>
<data name="Tooltips.Uploader.WatchFolderMissing" xml:space="preserve"><value>The folder cannot be reached; it is checked again every {0} · click to change or remove</value></data>
+15
View File
@@ -103,6 +103,21 @@
<data name="Uploader.Trust.Message" xml:space="preserve"><value>Compare this fingerprint with the one shown on the server.</value><comment>long</comment></data>
<data name="Uploader.Trust.Title" xml:space="preserve"><value>Trust this server?</value></data>
<data name="Uploader.Unit.PerSecond" xml:space="preserve"><value>{0}/s</value></data>
<data name="Uploader.Updates.Available" xml:space="preserve"><value>Version {0} available</value></data>
<data name="Uploader.Updates.Cancel" xml:space="preserve"><value>Cancel</value></data>
<data name="Uploader.Updates.CheckNow" xml:space="preserve"><value>Check now</value></data>
<data name="Uploader.Updates.CheckOnStart" xml:space="preserve"><value>Check on start</value></data>
<data name="Uploader.Updates.Checking" xml:space="preserve"><value>Checking…</value></data>
<data name="Uploader.Updates.Download" xml:space="preserve"><value>Download</value></data>
<data name="Uploader.Updates.DownloadFailed" xml:space="preserve"><value>Download failed</value></data>
<data name="Uploader.Updates.Downloading" xml:space="preserve"><value>Downloading {0:P0}</value></data>
<data name="Uploader.Updates.Failed" xml:space="preserve"><value>Check failed</value></data>
<data name="Uploader.Updates.InProgress" xml:space="preserve"><value>Downloading…</value></data>
<data name="Uploader.Updates.NotVerified" xml:space="preserve"><value>Download not verified</value></data>
<data name="Uploader.Updates.Ready" xml:space="preserve"><value>Version {0} downloaded</value></data>
<data name="Uploader.Updates.ShowSetup" xml:space="preserve"><value>Show setup</value></data>
<data name="Uploader.Updates.Title" xml:space="preserve"><value>Updates</value></data>
<data name="Uploader.Updates.UpToDate" xml:space="preserve"><value>Up to date</value></data>
<data name="Uploader.Watch.Chip" xml:space="preserve"><value>{0} · every {1}</value></data>
<data name="Uploader.Watch.Every" xml:space="preserve"><value>Every {0}</value></data>
<data name="Uploader.Watch.Interval" xml:space="preserve"><value>every {0}</value></data>