Skip to content

frontend: Update from certified obs-rust releases - #1742

Merged
zackees merged 8 commits into
masterfrom
fix/updater-certified-releases
Oct 22, 2026
Merged

zackees merged 8 commits into
masterfrom
fix/updater-certified-releases

Conversation

@zackees

@zackees zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member

Fixes #1729. Refs #1730, #1736. Supersedes #1733, #1737, #1740 (maintainer decision: updaters stay on and offer only certified obs-rust releases).

Stacked on #1727 (fix/macos-sparkle-upstream-feed). I'll retarget it to master once #1727 merges.

Certified releases

  • release-rust.yaml: the daily beta is published with --prerelease --latest=false, including the repair path.
  • To certify a build, a maintainer runs gh workflow run release-rust.yaml -f certify=obs-studio-rust-v<version>. The new certify job (on the same workflow; no new workflow file):
    • accepts only a published obs-studio-rust-v* release. Those are published only after the release gate and every platform build pass.
    • checks the assets against SHA256SUMS.
    • reads CFBundleVersion and related values from each DMG and signs the DMG with Sparkle's sign_update (OBS_RUST_SPARKLE_PRIVATE_KEY).
    • runs ci/update_feed.py, then uploads the feed.
    • only then runs gh release edit --prerelease=false --latest.
  • The check job is skipped on a certify dispatch.
  • Documented in docs/rust-port/release-criteria.md.

How the updaters find and verify a certified release

Both read https://github.com/obs-rust/obs-studio/releases/latest/download/. GitHub resolves that only to the newest full release, never to a pre-release.

RED → GREEN

  • RED 982a1203b: 21 failures in ci/test_update_feed.py, ci/test_no_upstream_updater.py and ci/test_release_step_pitfalls.py.
    • The daily release is marked Latest, and there is no certify job.
    • update_feed.py and obs-rust-update.hpp are missing.
    • The feed URLs and RSA key are upstream's.
    • publish.yaml still has the upstream appcast jobs.
  • GREEN 547de60ea: all pass, and ./lint is OK.
    • test_update_feed.py runs the generator with a throwaway RSA key and verifies the signatures.
    • It rejects a SHA256SUMS mismatch and non-release tags.
    • It compiles the version header with c++.
  • test_release_step_pitfalls.test_daily_beta_is_the_latest_release is replaced by test_daily_beta_is_a_pre_release, per the maintainer's decision.

Packaged-artifact check (AGENTS.md)

ci/app_identity_check.py bundle runs in macos_smoke on the app taken out of the released DMG. It now requires SUFeedURL to be the obs-rust latest/download feed (with $(ARCHS) expanded), obs-rust's SUPublicEDKey, and Sparkle.framework.

Not verified locally

  • The Windows C++ hasn't been compiled here (Linux host). PR CI's Windows build covers it.
  • No real self-update has been observed on either OS yet. That needs a release built from this change, followed by a certify run.
  • Existing releases 20261014, 20261018 and 20261020 are still full releases (20261020 is Latest) and have no feed assets. Until one is certified or re-marked as a pre-release, latest/download/* returns 404 and the updaters report "no update".

@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current master and retargeted to master. This branch now includes #1727's commits (macOS Sparkle feed fix) beneath its own, so it can land alone or after #1727. Also added a clang-format fix for frontend/utility/obs-rust-update.hpp (./lint was failing on it).

…1730, #1736)

The daily beta must be a pre-release; only a maintainer's certify dispatch
makes a full release (Latest). Both updaters stay on and read
releases/latest/download/ on obs-rust/obs-studio: Sparkle appcasts, an
RSA-signed Windows manifest and branches.json written by ci/update_feed.py.

21 failures: no certify job, daily releases are marked Latest, no
ci/update_feed.py or obs-rust-update.hpp, the feed URLs and RSA key are
upstream's or empty, the upstream appcast jobs remain in publish.yaml.
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
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
zackees force-pushed the fix/updater-certified-releases branch from 44d8ec2 to a580063 Compare October 22, 2026 09:20
@zackees
zackees enabled auto-merge October 22, 2026 09:20
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master after #1725 merged. Resolved the frontend/cmake/os-windows.cmake conflict to #1725's layout: kept obs_frontend_add_sources(WINDOWS) and added utility/obs-rust-update.hpp after utility/AutoUpdateThread.hpp in the WINDOWS set of frontend/build/source-sets.json; ci/test_no_upstream_updater.py now checks the WINDOWS source set. ./lint, test_no_upstream_updater.py and test_update_feed.py pass locally.

@zackees
zackees added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 22, 2026
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 22, 2026
@zackees
zackees added this pull request to the merge queue Oct 22, 2026
Merged via the queue into master with commit 77cd0e4 Oct 22, 2026
26 checks passed
@zackees
zackees deleted the fix/updater-certified-releases branch October 26, 2026 15:44
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.

bug: frontend: the Windows auto-updater downloads and installs upstream OBS Studio

1 participant