phase 5: auto-update feed for community desktop builds (generic provider over the community downloads URL) #140

Open
opened 2026-09-06 05:43:02 +00:00 by ben · 0 comments
Owner

Phase-5 candidate: installed community desktop apps get the electron-updater prompt when a new build publishes.

Today COA community builds ship with updates off (coa-builds README, out of scope in phase 3):
no latest*.yml feed files in the release (the workflow uploads exactly five installers), and
the asset URLs are private-GitHub links no installed app could poll anyway.

Design sketch (rides on #139's stable downloads URL — option 1 there):

  1. Feed = the community downloads URL. electron-builder in coa-builds sets
    publish: {provider: "generic", url: "https://coa.matou.nz/c/<slug>/downloads"} per
    community — that makes it emit latest.yml / latest-mac.yml / latest-linux.yml — and
    the workflow uploads the yml files alongside the installers to the same place. The installed
    app polls that URL; a new build landing there produces the in-app update prompt. No GitHub
    auth, no per-build tag problem.
  2. mac signing: reuse matou-app's Apple chain. matou-app tag builds already sign + notarize
    with CSC_LINK/CSC_KEY_PASSWORD (Developer ID cert) + APPLE_API_KEY_CONTENT/_ID/
    APPLE_API_ISSUER/APPLE_TEAM_ID. One Developer ID Application cert signs any bundle id
    under the team, so per-community appIds are fine. Move those six secrets to org-level
    GitHub secrets
    shared with coa-builds (or copy them in) and pass the same env in the
    desktop job. Notarization adds ~5–10 min per build. Without this, mac auto-update is
    impossible — electron-updater hard-refuses unsigned apps on macOS.
  3. Windows/Linux work unsigned (NSIS prompts scarier UAC; AppImage fine). Windows signing
    stays out of scope.
  4. Android: no electron path — but note sideload upgrades require a stable APK signing
    key per community; today's APKs ride the matou-app keystore recipe. Out of scope here,
    worth its own look.
  5. Updater cadence/UX (check-on-launch vs interval, prompt copy) — small, decide at
    implementation.

Blocked by #139 (the stable, public per-community downloads URL is the feed's foundation).

**Phase-5 candidate: installed community desktop apps get the electron-updater prompt when a new build publishes.** Today COA community builds ship with updates off (coa-builds README, out of scope in phase 3): no `latest*.yml` feed files in the release (the workflow uploads exactly five installers), and the asset URLs are private-GitHub links no installed app could poll anyway. Design sketch (rides on #139's stable downloads URL — option 1 there): 1. **Feed = the community downloads URL.** electron-builder in coa-builds sets `publish: {provider: "generic", url: "https://coa.matou.nz/c/<slug>/downloads"}` per community — that makes it emit `latest.yml` / `latest-mac.yml` / `latest-linux.yml` — and the workflow uploads the yml files alongside the installers to the same place. The installed app polls that URL; a new build landing there produces the in-app update prompt. No GitHub auth, no per-build tag problem. 2. **mac signing: reuse matou-app's Apple chain.** matou-app tag builds already sign + notarize with `CSC_LINK`/`CSC_KEY_PASSWORD` (Developer ID cert) + `APPLE_API_KEY_CONTENT`/`_ID`/ `APPLE_API_ISSUER`/`APPLE_TEAM_ID`. One Developer ID Application cert signs any bundle id under the team, so per-community appIds are fine. Move those six secrets to **org-level GitHub secrets** shared with coa-builds (or copy them in) and pass the same env in the desktop job. Notarization adds ~5–10 min per build. Without this, mac auto-update is impossible — electron-updater hard-refuses unsigned apps on macOS. 3. **Windows/Linux** work unsigned (NSIS prompts scarier UAC; AppImage fine). Windows signing stays out of scope. 4. **Android**: no electron path — but note sideload *upgrades* require a stable APK signing key per community; today's APKs ride the matou-app keystore recipe. Out of scope here, worth its own look. 5. Updater cadence/UX (check-on-launch vs interval, prompt copy) — small, decide at implementation. Blocked by #139 (the stable, public per-community downloads URL is the feed's foundation).
Sign in to join this conversation.
No milestone
No project
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.

Reference
Matou/coa#140
No description provided.