mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-26 06:49:33 +00:00
The Windows tray app had no way of knowing it was out of date: the macOS
menubar has checked GitHub every two days since 0.9.9, and here the only
signal was the setup screen for a CLI that was missing outright.
This is the port of Data/UpdateChecker.swift onto the Windows release line.
The app ships as an .msi under a windows-v* tag rather than a zip under
mac-v*, so the scan looks for a release carrying both the .msi and the
.sha256 beside it, and skips one missing either, because the installer
verifies that checksum before anything executes. The CLI's own tags are a
bare v*, which is what separates them from both platform lines.
The check runs in Rust rather than in the page. The answer has to survive a
popover that is closed most of the time, so it is cached to
%LOCALAPPDATA%\codeburn-menubar\update.json beside the tray status file and
re-read at startup; and the webview's CSP has no business reaching
api.github.com when the request can be made where the FX and Claude plan
calls already are. So the CSP is unchanged. The request is HTTPS-only
(redirects included), carries a 30 s timeout, and reads the body in chunks
against a cap rather than buffering whatever arrives.
Nothing is downloaded or executed here: `codeburn menubar --force` does the
install, which is what verifies the checksum and hands the file to msiexec.
The CLI is updated first, from the npm beside the launcher, so that
installer is the one that ships with the new CLI. 0.9.21 is the oldest CLI
that can install a Windows app at all (the Windows branch of the installer
landed in
|
||
|---|---|---|
| .. | ||
| dist | ||
| Scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| DEVELOPMENT.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tokens.json | ||
| tsconfig.json | ||
| vite.config.ts | ||