Repository navigation
0.1.41
Built from 46e6488: Release either platform without the other, and retry GitHub's release API (#17)
0.1.40 failed on a 502 from GitHub's upload host ("Error updating policy") while electron-builder
uploaded the Windows installer: it doesn't retry. Publishing waited on Windows, so the Mac build,
which had passed and uploaded, never went out, and the cleanup's own 502 left the draft behind.
Windows now builds with --publish never (latest.yml is still written) and uploads like the Mac
build does. Every release call goes through scripts/ci-release.sh, which retries five times: prepare
(it looks before each create, since a create that answered 502 may have made the draft, and drafts
may share a tag), upload (--clobber replaces a half-uploaded file), publish and cleanup. Each
platform has its own publisher that publishes the draft once the tests and that platform pass; the
other finds it published and leaves it. Cleanup still deletes only a draft, so a release either
platform published is never touched, and the other platform's apps quietly stay put until it has
their update file.
Checks: the script run against a fake gh injecting 502s (a create that sticks, uploads, edits and
views that fail first, a second publisher, cleanup of published and draft releases, an older run
not marked latest, a commit message with quotes, backticks and $()); a local Windows build with
--publish never writes latest.yml; the workflow parses; bun typecheck, bun test.
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com