mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 08:18:10 +01:00
* fix(desktop): publish every platform again, and ship a usable Linux icon
Three defects, one shared cause: a release step that could fail or be
skipped without anyone noticing.
1. Releases stopped shipping macOS and Windows after v0.8.6.
1d16150 pointed electron-builder's `publish` at fleetcrown-releases while
CI still handed it the default GITHUB_TOKEN, which has no write access
there — so `--publish always` 403'd and the tagged matrix died. 0.8.7,
0.8.8 and 0.8.9 were cut by hand from a Linux box instead, leaving
macOS and Windows users three versions behind with no way forward.
The build job now never publishes; it only uploads artifacts. A new
`mirror` job assembles the release from those artifacts and pushes it to
fleetcrown-releases with RELEASES_REPO_TOKEN, under the fleet-runner-v*
tag the marketing URLs already resolve to. `needs: build` means a partial
matrix can never ship, and if-no-files-found is now `error`, so a silently
empty macOS or Windows artifact fails the run instead of quietly
producing another Linux-only release.
It reuses scripts/mirror-desktop-release.sh — the step that was supposed
to be run by hand after every release, and wasn't. One implementation of
"how a release is assembled", now actually executed.
2. The Linux launcher icon was blank on KDE.
`linux.icon` pointed at a single 1024x1024 png, which electron-builder
hands to fpm verbatim: it installed exactly one file, into
hicolor/1024x1024 — a bucket no panel looks in at 32px. Now a directory
of nine sizes, rasterized from the SVG SSOT at each size rather than
downscaled, so the 16px glyph stays legible.
Verified: the .deb goes from 1 icon entry to 9 (16 through 1024).
3. That class of bug can no longer ship.
generate-tray-icon.mjs already guarded the three committed brand PNGs;
it now guards every icon size too, and fails with the exact fix command.
Deleting one size fails the build instead of silently producing a
blank-icon installer.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix(test): pin the clock in autopilot-eligibility so it stops grading itself against today
The suite defines `NOW = 2026-08-02T12:00:00Z` and builds every fixture
relative to it, but `nowMs` was an optional per-call argument and 8 of the 14
calls omitted it — those read `Date.now()` instead. So a fixture written as
"one minute old" was one minute old only while the wall clock sat near NOW.
Two days later it is two days old, the staleness paths
(WORKING_CLAIM_TTL_MS / BLOCKED_RECHECK_TTL_MS) fire, and assertions that
have nothing to do with time start failing. It went red on 2026-08-04 with no
code change behind it, blocking every push via the pre-push hook.
The parity check had the same flaw in sharper form: it asserts the scheduler
and the Control page "reach identical verdicts from identical facts" while
pinning the scheduler's clock and letting Control read the real one. The
clock IS one of those facts, so it was manufacturing a divergence that said
nothing about the SSOT property under test.
Both paths now go through helpers that inject `nowMs: NOW` by default —
`dispatchAt()` and `gatesAt()` — with an explicit `nowMs` still overriding
for the cases that are genuinely about elapsed time. Fixing the 8 call sites
individually would have left the next added test free to forget again; making
the pinned clock the default removes the option.
Verified by moving NOW to 2020-01-15: all 14 cases still pass, so the suite
no longer depends on when it runs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: test <test@test>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>