Commit 30b4a71
macos: fix CI tests, build.py runtime/codesign, and gitignore
Tests (main_test.py, osr_test.py):
Chrome 130+ registers MachPortRendezvousServer via bootstrap_check_in,
which requires a pre-declared launchd service. Without an app bundle
CFBundleIdentifier is empty, so the service name becomes
".MachPortRendezvousServer.<pid>", bootstrap_check_in returns
BOOTSTRAP_UNKNOWN_SERVICE, and every spawned renderer subprocess
crashes on startup. Adding --in-process-renderer makes the renderer
run as a thread in the browser process — MachPortRendezvousClient is
never called, bypassing the Mach rendezvous path entirely. The
data-URI test pages do not need a working network service.
build.py:
- Add LINUX/MAC platform constants (previously only WINDOWS existed).
- Fix CEF runtime detection: was Linux-only (checked for libcef.so,
globbed cef*_linux64); add elif MAC branch that checks for
"Chromium Embedded Framework.framework" and globs cef*_mac*.
- Fix _copy_cef_runtime: use copytree(symlinks=True) so .framework
symlinks (e.g. Headers -> Versions/A/Headers) are preserved instead
of being dereferenced and duplicated.
- Add _codesign_macos(): ad-hoc signs subprocess and cefpython_py*.so
after each dev build; the CEF framework is left untouched since it
already carries the CEF project's signature.
.gitignore:
Add cefpython3/chrome_crashpad_handler and
cefpython3/Chromium Embedded Framework.framework/ — both are copied
from cef*_macarm64/bin/ by _copy_cef_runtime and were previously
unignored on macOS dev builds.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c983050 commit 30b4a71
4 files changed
Lines changed: 243 additions & 201 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments