codeburn/app/electron
iamtoruk c625d020e6 feat(app): the Windows desktop app puts the tray app on the machine
Installing the desktop app should give a person the tray icon and the Capacity
Dock without their ever learning that `codeburn menubar` exists. So it carries
the matching windows-v* build and puts it there itself, at first launch and at
every launch after, which is also what covers a desktop-app update: the staged
.msi travels with the app.

The install itself is not reimplemented here. The CLI already owns the registry
read, the checksum, the msiexec call and the never-downgrade rule, so this side
stages the file, names it in CODEBURN_MENUBAR_MSI and reads the one JSON line
that comes back. What it does own is the tray app's process and its Run value,
because the two sidebar switches have to be able to stop and start it: the tray
app is reached through its own argv, --quit to stop and --reload-settings to
make it re-read the dock preference this module writes.

The Store route shares almost none of that. msiexec is not available to a
packaged app and would fight the package manager anyway, so the tray exe ships
inside the package and is launched from there, and no Run value is written
because the manifest's own startup task covers launch at login.

Two rules worth naming. The defaults are seeded once, so a person who later
turns the rail off in the tray app's own settings does not find it back on at
the next launch of this one. And every setter answers with the whole status
rather than an acknowledgement, so a switch shows what took: an install
cancelled at the UAC prompt leaves it where it was.
2026-09-02 04:42:54 -07:00
..
quota fix(quota): skip zero-entitlement and unlimited Copilot windows instead of showing 100% used 2026-08-31 03:26:19 -07:00
cli-win32-reap.test.ts fix: bound the serve drain, reap orphans on Windows, and de-flake the grace test 2026-08-22 10:36:58 -07:00
cli.test.ts fix(desktop): reap CLI process trees on quit (#1166) 2026-08-28 15:12:33 -07:00
cli.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
main.test.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
main.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
menubar.test.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
menubar.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
preload.ts feat(app): the Windows desktop app puts the tray app on the machine 2026-09-02 04:42:54 -07:00
telemetry.test.ts fix(telemetry): cap cli_error per kind per day, flush app_close on quit 2026-07-18 23:06:30 +03:00
telemetry.ts fix(telemetry): cap cli_error per kind per day, flush app_close on quit 2026-07-18 23:06:30 +03:00
updates.test.ts feat(app): update-available notifications 2026-07-17 04:58:13 -07:00
updates.ts feat(app): update-available notifications 2026-07-17 04:58:13 -07:00