sparkle: serve and publish a Lately feed from lately.org #70

Merged
founder merged 2 commits from lately-sparkle-publish into main 2026-08-16 12:41:46 +00:00
Owner

Serves a Lately Sparkle feed at https://lately.org/builds/sparkle/ (nginx proxy in the lately.org block → blob key-store-release/lately/sparkle/, mirroring key.store's block) and product-parameterises the publisher:

  • Scripts/sparkle/product-config.sh (single product table), --product on Scripts/generate-appcast.sh (KeyStore default byte-identical), product input on publish-sparkle-deltas.yml, a upload-sparkle-lately job in publish-store-uploads.yml (gated on include_lately_macos + upload_sparkle), release-asset mirroring + input forwarding in build-release.yml.
  • deploy-web.yml: tolerant “Verify Live Lately Sparkle Routes” smoke (services/observability/sparkle-route-smoke.sh).

Merged after #69 (app embeds Sparkle) so the first Lately appcast is signed. Adversarially reviewed: ship (the one blocking item was exactly this merge order).

🤖 Generated with Claude Code

Serves a Lately Sparkle feed at `https://lately.org/builds/sparkle/` (nginx proxy in the lately.org block → blob `key-store-release/lately/sparkle/`, mirroring key.store's block) and product-parameterises the publisher: - `Scripts/sparkle/product-config.sh` (single product table), `--product` on `Scripts/generate-appcast.sh` (KeyStore default byte-identical), `product` input on `publish-sparkle-deltas.yml`, a `upload-sparkle-lately` job in `publish-store-uploads.yml` (gated on `include_lately_macos` + `upload_sparkle`), release-asset mirroring + input forwarding in `build-release.yml`. - `deploy-web.yml`: tolerant “Verify Live Lately Sparkle Routes” smoke (`services/observability/sparkle-route-smoke.sh`). Merged after #69 (app embeds Sparkle) so the first Lately appcast is signed. Adversarially reviewed: ship (the one blocking item was exactly this merge order). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Lately for macOS is about to embed Sparkle, and KSE-0007 requires the
feed and its enclosures to live on a first-party domain that proxies to
the release bucket rather than exposing blob.key.store. lately.org had
no /builds/* routes at all, so /builds/sparkle/appcast.xml fell through
to the SPA shell and returned HTML with a 200.

Add the same blob-proxy locations key.store already has for its own
feed, but rooted at key-store-release/lately/sparkle/: generate_appcast
treats one archive directory as one app's version history, so Lately's
DMGs cannot share the bare sparkle/ root with key.store. Because blob
sends no Cache-Control, the mutable pointers (appcast.xml,
main-channel.txt) are marked no-cache and the immutable build-<n>/
enclosures get a long cache; the rest of the tree mirrors key.store's
locations verbatim.

deploy-web gains a "Verify Live Lately Sparkle Routes" smoke, built on
a new generic services/observability/sparkle-route-smoke.sh (blob root
vs site root: appcast bytes, newest enclosure reachable and sized as
advertised, main-channel and per-channel appcast, stable DMG pointer).
It runs with SPARKLE_ROUTE_REQUIRED=false so a not-yet-published feed
is a warning, not a failed deploy; once the appcast exists every check
is enforced. Verified locally against the live key.store feed and the
(still empty) Lately prefix.
release: product-parameterise the Sparkle publisher for Lately
Some checks failed
Build: SQLite SEE / Redacted SEE compile (pull_request) Successful in 5s
Namespace: Build Images / Refresh macOS runner lane (push) Failing after 5s
Namespace: Build Images / Refresh Linux runner image (push) Failing after 6s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 16s
Build: Apple / Check (SwiftLint) (push) Successful in 17s
Build: SQLite SEE / Redacted SEE compile (push) Successful in 30s
Build: Apple / Build (iOS) (pull_request) Successful in 30s
Build: Apple / Build (visionOS) (pull_request) Successful in 29s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 1m3s
Build: Apple / Build (iOS) (push) Successful in 28s
Build: Apple / Build (visionOS) (push) Successful in 24s
Build: Apple / Build (macOS) (pull_request) Successful in 1m50s
Build: Apple / Build (macOS) (push) Successful in 1m51s
Deploy: API / Deploy (API) (push) Successful in 3m0s
Release: If Needed / Check (Release Needed) (push) Has been cancelled
Deploy: Web / Deploy (Web) (push) Has been cancelled
Build: KaiOS / Build (KaiOS) (push) Successful in 16m18s
Build: Web / Build (Web) (pull_request) Failing after 18m50s
Build: KaiOS / Build (KaiOS) (pull_request) Failing after 18m50s
Build: Web / Build (Web) (push) Failing after 18m49s
Build: Linux / Build (Linux x86_64) (push) Successful in 25m9s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 26m17s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
ecabeeecec
The Sparkle lane hard-coded KeyStore-<n>.dmg, the sparkle/ bucket root,
https://key.store/builds/sparkle and key.store-latest.dmg in four
places (generate-appcast.sh, publish-sparkle-deltas.yml, the
upload-sparkle job, build-release's release-asset mirror). Lately needs
the same pipeline against its own root, so the layout now comes from
one table, Scripts/sparkle/product-config.sh:

  KeyStore -> KeyStore-<n>.dmg, sparkle/,        key.store/builds/sparkle,
              key.store-latest.dmg
  Lately   -> Lately-<n>.dmg,   lately/sparkle/, lately.org/builds/sparkle,
              lately-latest.dmg

Both products share the existing Ed25519 key; a separate bucket root is
required because generate_appcast treats one archive directory as one
app's version history and hydrates deltas from every build-<n>/ under
it.

- generate-appcast.sh: --product <KeyStore|Lately> (default KeyStore)
  selects the DMG name, remote prefix and default --download-prefix.
  Replayed against a stubbed rclone/xcodebuild: KeyStore invocations
  are byte-identical to before.
- publish-sparkle-deltas.yml: new `product` input plumbed through the
  download, generate, publish and point-main steps; the concurrency
  group is now per product so the KeyStore and Lately runs for one
  build number, dispatched back to back, do not cancel each other.
- publish-store-uploads.yml: the upload-sparkle job reads its layout
  from product-config and forwards `product` to the delta dispatch; a
  twin upload-sparkle-lately job (gated on upload_sparkle and the new
  include_lately_macos input, default true like build-release) stages
  builds/<n>/apple/Lately-<n>.dmg under builds/<n>/lately/sparkle/ and
  dispatches deltas with product=Lately, including the same
  sparkle_point_main pointer logic.
- build-release.yml: forward include_lately_macos to the upload
  dispatch (false when the input was empty, i.e. tag-push runs that
  never built Lately), mirror builds/<n>/lately/sparkle/build-<n> into
  the Forgejo release next to key.store's, attaching the Lately appcast
  as Lately-appcast.xml because release assets are one flat namespace.
- public-release-bucket-policy.py: list lately/ with the other public
  prefixes so the (currently unused) MinIO-style policy stays complete.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!70
No description provided.