Skip to content

frontend: the updater through the platform facade (#873) - #2039

Merged
zackees merged 3 commits into
masterfrom
infra/873-updater
Oct 24, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/873-updater

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Refs #873 (OBSBasic_Updater, plus the last OBSBasic_MainControls branch).

With this PR, the OBSBasic_* files listed in #873 have no host conditionals left. Three new facade calls:

Facade Windows macOS / Linux
PlatformSupportsBuiltinUpdater() true false
CreatePlatformUpdateThread(manualUpdate, repair) new AutoUpdateThread(manualUpdate, repair) nullptr
IsWhatsNewItemForPlatform(onWindows, onMacos, onLinux) onWindows onMacos / onLinux

Code changes:

  • CheckForUpdates, on_actionRepair_triggered and the 4-day TimedCheckForUpdates interval use the built-in updater only where PlatformSupportsBuiltinUpdater() is true. Sparkle stays behind its own feature macro, ENABLE_SPARKLE_UPDATER, which is not a platform conditional.

  • The What's New platform filter is one call instead of a three-way #if.

  • AutoUpdateThread.hpp leaves frontend-widgets.pch.hpp, where it appeared twice under _WIN32, and moves to frontend-windows-platform.pch.hpp.

  • ci/test_no_upstream_updater.py now checks that the shared code asks for the host updater thread and that the Windows host still builds AutoUpdateThread. The guarded property is the same.

  • Behavior: unchanged on every host.

  • PCH: changed, so BUILD.md's full run is required: dispatched ci.yml on infra/873-updater.

  • Ratchet: the baseline goes down by 8 (Updater 5 → 0, MainControls 1 → 0, widgets PCH 6 → 4).

RED test_updater_goes_through_the_facade fails on master. GREEN it passes, and ./lint is clean.

Full run 40056933740: Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust) and Flatpak all built successfully.

#2037 has merged, and this branch is rebased onto master.

@zackees
zackees marked this pull request as ready for review October 24, 2026 04:02
@zackees
zackees enabled auto-merge October 24, 2026 04:02
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Coordinator: the Event Data check failed because this branch moved plugins/obs-websocket back from 99dd8468b (master, the parallel RequestBatch fix from #1996) to 0d663eefb, probably a stale submodule checkout committed by accident. I pushed a fixup: commit that sets the pointer back to master's value, so the PR no longer touches the submodule. Tip: git submodule update after rebasing.

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