Skip to content

packaging: Ship the Flatpak as io.github.obs_rust.OBSStudioRust - #2358

Merged
zackees merged 3 commits into
masterfrom
packaging/flatpak-rebrand
Oct 25, 2026
Merged

zackees merged 3 commits into
masterfrom
packaging/flatpak-rebrand

Conversation

@zackees

@zackees zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member

Closes #2354, step 2 of the #2317 plan. Steps 1 and 3 already merged in #2347 and #2348.

  • git mv build-aux/com.obsproject.Studio.json build-aux/io.github.obs_rust.OBSStudioRust.json, with id set to io.github.obs_rust.OBSStudioRust, command to obs-studio-rust-gui, -DOBS_BRAND_RUST=ON, and the extension point to io.github.obs_rust.OBSStudioRust.Plugin. Building branded makes the desktop file, metainfo, icons and portal id follow OBS_DESKTOP_ID, as they already do for the .deb and AppImage.
  • CI follows:
    • build-project.yaml: manifest path and cache keys, the metainfo path, and the app-info icon/xml checks
    • the flatpak-builder-lint exceptions and the manifest validator action
    • ci/flatpak_runtime.py: /app/bin/obs-studio-rust-gui
    • ci/flatpak_pch_probe.py and the ci/ tests that read the manifest
  • publish.yaml is left alone: it is upstream's Flathub publisher, gated on obsproject.
  • README: still 'no Flatpak yet', plus where settings (copy from ~/.var/app/com.obsproject.Studio/config/obs-studio) and plug-ins go once it ships.

RED (ci/test_flatpak_identity.py, 5 failures) then GREEN. Locally, test_flatpak_runtime, test_cef_linux_files, test_cef_pin, test_ci_toml, test_hybrid_packaging and test_readme_package_formats pass, and so does ./lint.

Not verified locally: the Flatpak build itself is heavy, so I didn't run it here. The Flatpak build and its saved-profile start (ci/flatpak_runtime.py, profile and collection Test) run in CI. If this PR's paths don't select the Flatpak lane, the release gate is the first real build.

#2354)

The manifest is renamed after the app id and builds branded
(-DOBS_BRAND_RUST=ON), so the desktop file, metainfo, icons and the portal
id all follow OBS_DESKTOP_ID. The command is obs-studio-rust-gui and the
plug-in extension point io.github.obs_rust.OBSStudioRust.Plugin. CI's
manifest paths, build-share checks and flatpak_runtime's executable follow.
publish.yaml (upstream's Flathub publisher, gated on obsproject) is left
alone.
@zackees
zackees enabled auto-merge October 25, 2026 07:43
@zackees
zackees added this pull request to the merge queue Oct 25, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 25, 2026
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

I took this out of the merge queue: every Flatpak job was skipped on the PR, so the renamed manifest has never been built. I'm verifying it with a manual Flatpak-only run on this branch, with the runtime test on: https://github.com/obs-rust/obs-studio/actions/runs/40174394599. I'll re-queue once the Flatpak build and the saved-profile start pass.

flatpak-builder-lint wants io.github.obs_rust.OBSStudioRust to resolve to
github.com/obs-rust/OBSStudioRust; the repository is obs-rust/obs-studio.
The id is the one the .deb, AppImage and macOS bundle already ship, so CI
excuses this one rule; Flathub submission (#2318) has to settle it.
@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

The manual Flatpak run (40174394599) built the app, then failed flatpak-builder-lint with appid-url-not-reachable. Flathub expects io.github.obs_rust.OBSStudioRust to resolve to github.com/obs-rust/OBSStudioRust, and our repository is obs-rust/obs-studio.

For CI I added that one rule to the lint exceptions (pushed). Rerun: https://github.com/obs-rust/obs-studio/actions/runs/40175041769.

Decision needed before a Flathub submission (#2318 Stage 2): either

  • keep the id the .deb, AppImage and macOS bundle already ship and ask Flathub for an exception, or
  • move every channel to a repo-matching id such as io.github.obs_rust.obs-studio. That means a migration for existing installs.

The release-asset bundle (Stage 1) isn't affected.

@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Rerun 40175041769: the Flatpak builds and lint passes with the exception. Flatpak Saved Profile failed in ci/flatpak_runtime.py:299: GDB could not resolve CEF source lines from the installed Debug extension. That check reads the CEF debug symbols, not the app id. To find out whether it already fails on master, I started the same Flatpak-only dispatch on master as a baseline. This stays out of the queue until the two runs are compared.

@zackees

zackees commented Oct 25, 2026

Copy link
Copy Markdown
Member Author

Master's baseline (run 40176339062) fails the same GDB/CEF check, so it's an existing master bug, not something this PR caused. I filed it separately. Re-queued.

Merged via the queue into master with commit 06da118 Oct 25, 2026
58 of 60 checks passed
zackees added a commit that referenced this pull request Oct 26, 2026
…older

RED: since #2358 the Flatpak builds with OBS_BRAND_RUST, so OBS writes
its log to obs-studio-rust/logs, but flatpak_runtime.py writes the
saved profile to and reads the log from obs-studio. The GDB failure
(#2363) hid this until now.
zackees added a commit that referenced this pull request Oct 26, 2026
The Flatpak is the Rust brand since #2358, which keeps its settings and
logs in obs-studio-rust. The saved profile still loaded (OBS copies
obs-studio over on first start), but the log check looked in
obs-studio/logs and found none.
@zackees
zackees deleted the packaging/flatpak-rebrand branch October 26, 2026 15:45
vpacher pushed a commit to vpacher/obs-studio that referenced this pull request Oct 26, 2026
…bs-rust#2400) (obs-rust#2477)

* ci: Test that each release ships the .flatpak the gate ran (obs-rust#2400)

RED: release_decision doesn't require a .flatpak, the release gate
doesn't run the Flatpak Saved Profile job, and that job installs from
the exported repo, not a bundle.

* ci: Ship a .flatpak bundle with each release, the one the gate ran (obs-rust#2400)

The Flatpak Saved Profile job now builds a bundle from the exported
repo (flatpak build-bundle --runtime-repo=flathub), installs the app
from it with `flatpak install --bundle` (the Debug extension still
comes from the repo) and checks the app's origin is the bundle, then
uploads it. The release gate runs that job, and the release copies
the bundle as OBS-Studio-Rust-<version>-linux-x86_64.flatpak;
release_decision refuses a release without one.

* ci: Test that the Flatpak runtime test uses the Rust brand's config folder

RED: since obs-rust#2358 the Flatpak builds with OBS_BRAND_RUST, so OBS writes
its log to obs-studio-rust/logs, but flatpak_runtime.py writes the
saved profile to and reads the log from obs-studio. The GDB failure
(obs-rust#2363) hid this until now.

* ci: Flatpak runtime test writes the saved profile to obs-studio-rust

The Flatpak is the Rust brand since obs-rust#2358, which keeps its settings and
logs in obs-studio-rust. The saved profile still loaded (OBS copies
obs-studio over on first start), but the log check looked in
obs-studio/logs and found none.
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.

packaging: Ship the Flatpak as io.github.obs_rust.OBSStudioRust instead of com.obsproject.Studio

1 participant