Repository navigation
packaging: Ship the Flatpak as io.github.obs_rust.OBSStudioRust - #2358
Conversation
#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.
|
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.
|
The manual Flatpak run (40174394599) built the app, then failed flatpak-builder-lint with 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
The release-asset bundle (Stage 1) isn't affected. |
|
Rerun 40175041769: the Flatpak builds and lint passes with the exception. Flatpak Saved Profile failed in |
|
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. |
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.
…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.
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, withidset toio.github.obs_rust.OBSStudioRust,commandtoobs-studio-rust-gui,-DOBS_BRAND_RUST=ON, and the extension point toio.github.obs_rust.OBSStudioRust.Plugin. Building branded makes the desktop file, metainfo, icons and portal id followOBS_DESKTOP_ID, as they already do for the .deb and AppImage.build-project.yaml: manifest path and cache keys, the metainfo path, and the app-info icon/xml checksci/flatpak_runtime.py:/app/bin/obs-studio-rust-guici/flatpak_pch_probe.pyand theci/tests that read the manifestpublish.yamlis left alone: it is upstream's Flathub publisher, gated onobsproject.~/.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_packagingandtest_readme_package_formatspass, 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 collectionTest) run in CI. If this PR's paths don't select the Flatpak lane, the release gate is the first real build.