Skip to content

cef: macOS 8078 recipe for arm64 and x86_64 - #17

Merged
zackees merged 2 commits into
obs-rust:mainfrom
nathan-v:cef/macos-8078
Oct 26, 2026
Merged

zackees merged 2 commits into
obs-rust:mainfrom
nathan-v:cef/macos-8078

Conversation

@nathan-v

Copy link
Copy Markdown
Contributor

Host recipe for the macOS CEF 8078 archives (arm64 and x86_64). The script runs on the Mac, where Xcode is installed. The bosn stacks in this repo are Linux containers, and Chromium has no Linux to macOS cross compile.

Checkout is 426920c33ef22551e0b8f48cf343d623ac25642d, the commit behind the Linux 8078 archive (156.0.8+g426920c+chromium-156.0.8078.48). GN defines are is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome symbol_level=1 chrome_pgo_phase=0. One architecture per run. The build target is cefclient, because the macOS distrib copies the framework out of cefclient.app. Pack fails unless args.gn has the codec flags and Release/Chromium Embedded Framework.framework/Libraries/libcef_sandbox.dylib is in the tree, then it deletes that arch's out directory so the other one fits.

  • RED 9a90fab: test_macos_recipe_pins_codecs_and_the_sandbox_library raises FileNotFoundError for recipes/cef/macos/build.sh.
  • GREEN 5b1db4a: the script. uv run --group dev pytest tests/test_cef_recipe.py -q reports 2 passed. uv run --group dev ruff check . is clean.

The archives themselves come next: build arm64, pack, then x86_64, and upload cef_binary_8078_macos_arm64.tar.xz and cef_binary_8078_macos_x86_64.tar.xz to the obs-rust/cef 8078 release. The obs-studio pin follows that.

Refs obs-rust/obs-studio#2418

The macOS 8078 recipe is not written yet, so this fails
on a missing recipes/cef/macos/build.sh. The recipe has
to use the Linux build's commit, keep proprietary codecs
and line tables, and require libcef_sandbox.dylib in the
framework.

obs-rust/obs-studio#2418.
Host script for arm64 and x86_64. Checkout is
426920c33ef22551e0b8f48cf343d623ac25642d, the Linux
8078 archive. One architecture per run. Pack checks
the codec flags and libcef_sandbox.dylib, then deletes
that arch's out directory so the other one fits.

Refs obs-rust/obs-studio#2418
@zackees

zackees commented Oct 26, 2026

Copy link
Copy Markdown
Member

Coordinator review: automate-git.py is pinned to the same CEF commit as the Linux 8078 archive. set -euo pipefail and ${OUT:?} guard the deletions, and the out dir is removed only after the archive exists. The codec flags and libcef_sandbox.dylib are checked before packing (that dylib is what notarization needed signed, obs-rust/obs-studio#2430). RED then GREEN is in the pytest. The repo has no CI; merging.

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.

2 participants