Repository navigation
frontend: the updater through the platform facade (#873) - #2039
Merged
Merged
Conversation
zackees
force-pushed
the
infra/873-updater
branch
from
October 24, 2026 03:32
1ad5de4 to
5b20136
Compare
zackees
force-pushed
the
infra/873-updater
branch
from
October 24, 2026 04:02
5b20136 to
30a8fc6
Compare
zackees
marked this pull request as ready for review
October 24, 2026 04:02
zackees
enabled auto-merge
October 24, 2026 04:02
Member
Author
|
Coordinator: the Event Data check failed because this branch moved |
This was referenced Oct 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:PlatformSupportsBuiltinUpdater()CreatePlatformUpdateThread(manualUpdate, repair)new AutoUpdateThread(manualUpdate, repair)IsWhatsNewItemForPlatform(onWindows, onMacos, onLinux)onWindowsonMacos/onLinuxCode changes:
CheckForUpdates,on_actionRepair_triggeredand the 4-dayTimedCheckForUpdatesinterval use the built-in updater only wherePlatformSupportsBuiltinUpdater()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.hppleavesfrontend-widgets.pch.hpp, where it appeared twice under_WIN32, and moves tofrontend-windows-platform.pch.hpp.ci/test_no_upstream_updater.pynow checks that the shared code asks for the host updater thread and that the Windows host still buildsAutoUpdateThread. The guarded property is the same.Behavior: unchanged on every host.
PCH: changed, so BUILD.md's full run is required: dispatched
ci.ymloninfra/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_facadefails on master. GREEN it passes, and./lintis 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.