codeburn/windows
iamtoruk a68eea089c feat(windows): check GitHub for a newer app and CLI, and install both
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 527e5807), which is this platform's counterpart of the mac's
0.9.9 floor: an older one is refused rather than left to download a mac zip.

Each stage gets the mac's 120 s timeout, is killed rather than waited on
past it, and has its stderr capped at 64 KB and scrubbed before any of it
reaches a window: npm and the installer echo environments when they fail,
and this app's children carry provider API keys in theirs.
2026-09-01 22:11:22 -07:00
..
dist windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
Scripts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
src feat(windows): the rail turns mid-drag when the edge in reach turns 2026-09-01 21:55:50 -07:00
src-tauri feat(windows): check GitHub for a newer app and CLI, and install both 2026-09-01 22:11:22 -07:00
.gitignore windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
DEVELOPMENT.md menubar: install and launch the Windows tray app from codeburn menubar 2026-08-18 06:55:09 -07:00
index.html windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
package-lock.json chore: release 0.9.23 2026-08-29 01:22:46 -07:00
package.json chore: release 0.9.23 2026-08-29 01:22:46 -07:00
tokens.json windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tsconfig.json windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
vite.config.ts windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00