Skip to content

frontend: Publish obs-rust's own macOS update feed and point the updater at it - #1737

Closed
zackees wants to merge 3 commits into
fix/1729-windows-updater-offfrom
fix/1730-obs-rust-update-feed
Closed

zackees wants to merge 3 commits into
fix/1729-windows-updater-offfrom
fix/1730-obs-rust-update-feed

Conversation

@zackees

@zackees zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member

Refs #1730 (Windows split out to #1736).

Stacked on #1733 (fix/1729-windows-updater-off, itself on #1727). Retarget to master once those merge.

What

  • Hosting: assets of a fixed update-feed GitHub release: updates_arm64_v2.xml, updates_x86_64_v2.xml, branches.json, branches.json.sig at https://github.com/obs-rust/obs-studio/releases/download/update-feed/. No new infrastructure. Each appcast enclosure points at the DMG on the tagged obs-studio-rust-v* release.
  • publish.yaml (maintainer sign-off for this file): the upstream create-appcast/merge-appcasts jobs (obsproject CDN urlPrefix/customLink, only for obsproject) are replaced by an update-feed job. It runs on workflow_run of Release OBS-Studio-Rust, because that workflow creates releases with GITHUB_TOKEN, which never fires release: published. It also runs on workflow_dispatch (optional tag). It takes the latest non-prerelease obs-studio-rust-v* release, downloads both DMGs, runs Sparkle's generate_appcast (version and hash from the presets) with the obs-rust key, signs branches.json with RSA, and uploads with --clobber. If the feed already offers the tag, it skips. The upstream sparkle-appcast action is left unused: it expects the obsproject CDN layout (deltas under urlPrefix/sparkle_deltas), which release assets can't provide.
  • Keys: a new Ed25519 Sparkle key (public key in CMakePresets.json and ci/app_identity_check.py) and a new RSA-4096 metadata key (frontend/data/OBSPublicRSAKey.pem replaces upstream's, so upstream-signed metadata is no longer trusted). The private keys are only in the repo secrets OBS_RUST_SPARKLE_PRIVATE_KEY and OBS_RUST_UPDATE_RSA_PRIVATE_KEY.
  • Code: the presets set SPARKLE_APPCAST_URL/SPARKLE_PUBLIC_KEY to obs-rust's, which turns the updater back on. The Rosetta feed override in OBSSparkle.mm.hpp and MAC_BRANCHES_URL now point at obs-rust. GetRemoteFile follows redirects for signed fetches only (GitHub assets redirect; the content is verified afterwards). FetchAndVerifyFile falls back to <url>.sig when there is no X-Signature header. Without these two changes, the branches fetch would throw and MacUpdateThread would never emit Result, so Sparkle would never check.
  • Windows stays off (ENABLE_WIN_UPDATER default OFF, from frontend: Turn off the Windows updater that installs upstream OBS (#1729) #1733). Its manifest, per-file packages, patches and updater.exe pipeline is build: publish a signed Windows update manifest and turn ENABLE_WIN_UPDATER back on #1736.

RED → GREEN

  • RED 87d8aec51: ci/test_no_upstream_updater.py fails 9 subtests. The macOS preset feed/key are empty, OBSSparkle.mm.hpp/MacUpdateThread.cpp.hpp still use obsproject.com, the RSA key is upstream's, publish.yaml has urlPrefix: 'https://cdn-fastly.obsproject.com/...', and app_identity_check.check_bundle accepts an upstream feed and key. It still fails on any obsproject.com feed.
  • GREEN fc0f6a27b: all 7 tests pass; ./lint passes (ci.toml allows the two new publish.yaml triggers).

Packaged-artifact check

release-rust.yaml's macos_smoke already runs ci/app_identity_check.py bundle on the app copied out of the released DMG. That check now requires SUFeedURL = the obs-rust feed for arm64 or x86_64 (so $(ARCHS) must have expanded), SUPublicEDKey = obs-rust's key, and an embedded Sparkle.framework (present in obs-rust/obs-deps 2026-08-26 macOS deps; verified). The test drives check_bundle on fake bundles. The real-DMG check runs at the next daily release, not in PR CI, because PR CI builds no DMG. Not yet observed: a real app updating itself. That needs a release after this lands, followed by the feed job; then an install of the previous DMG should be offered the new one. Hence Refs.

Tiers: no Rust/libobs code; Tiers 1-4 don't apply. C/ObjC changes are frontend-only.

…1730)

publish.yaml writes per-arch Sparkle appcasts and an RSA-signed
branches.json to the fixed update-feed release after each daily release.
The presets, the Rosetta feed override and MAC_BRANCHES_URL name that feed;
OBSPublicRSAKey.pem is obs-rust's metadata key. Signed metadata fetches
follow redirects and fall back to a detached <url>.sig, since GitHub release
assets can't send X-Signature. app_identity_check.py bundle now checks the
packaged SUFeedURL, SUPublicEDKey and Sparkle.framework.
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Superseded by #1742. Per the maintainer's decision, the updaters stay on and offer only certified obs-rust releases (daily builds are pre-releases; a certify dispatch promotes one and attaches a signed feed).

@zackees zackees closed this Oct 22, 2026
zackees added a commit that referenced this pull request Oct 22, 2026
Daily betas are now GitHub pre-releases. A maintainer certifies one with
'gh workflow run release-rust.yaml -f certify=<tag>': the certify job checks
the assets against SHA256SUMS, writes the update feed with ci/update_feed.py
(EdDSA-signed Sparkle appcasts, RSA-signed manifest.json and branches.json),
uploads it, and then makes the release a full release marked Latest.

Both updaters stay on and read
github.com/obs-rust/obs-studio/releases/latest/download/, which resolves only
to certified releases. macOS: Sparkle feed and key are obs-rust's (from
#1737). Windows: AutoUpdateThread verifies the signed manifest, compares
versions (obs-rust-update.hpp), downloads the release ZIP, checks its SHA-256
and installs it after OBS exits; upstream's CDN updater.exe is no longer built.
Upstream's appcast jobs are removed from publish.yaml.
zackees added a commit that referenced this pull request Oct 22, 2026
Daily betas are now GitHub pre-releases. A maintainer certifies one with
'gh workflow run release-rust.yaml -f certify=<tag>': the certify job checks
the assets against SHA256SUMS, writes the update feed with ci/update_feed.py
(EdDSA-signed Sparkle appcasts, RSA-signed manifest.json and branches.json),
uploads it, and then makes the release a full release marked Latest.

Both updaters stay on and read
github.com/obs-rust/obs-studio/releases/latest/download/, which resolves only
to certified releases. macOS: Sparkle feed and key are obs-rust's (from
#1737). Windows: AutoUpdateThread verifies the signed manifest, compares
versions (obs-rust-update.hpp), downloads the release ZIP, checks its SHA-256
and installs it after OBS exits; upstream's CDN updater.exe is no longer built.
Upstream's appcast jobs are removed from publish.yaml.
zackees added a commit that referenced this pull request Oct 22, 2026
Daily betas are now GitHub pre-releases. A maintainer certifies one with
'gh workflow run release-rust.yaml -f certify=<tag>': the certify job checks
the assets against SHA256SUMS, writes the update feed with ci/update_feed.py
(EdDSA-signed Sparkle appcasts, RSA-signed manifest.json and branches.json),
uploads it, and then makes the release a full release marked Latest.

Both updaters stay on and read
github.com/obs-rust/obs-studio/releases/latest/download/, which resolves only
to certified releases. macOS: Sparkle feed and key are obs-rust's (from
#1737). Windows: AutoUpdateThread verifies the signed manifest, compares
versions (obs-rust-update.hpp), downloads the release ZIP, checks its SHA-256
and installs it after OBS exits; upstream's CDN updater.exe is no longer built.
Upstream's appcast jobs are removed from publish.yaml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant