"""Tests for the macOS app-bundle CLI wrapper generated by build.sh.""" import os import re import subprocess from pathlib import Path def _extract_cli_wrapper_script() -> str: build_script = Path("apps/omlx-mac/Scripts/build.sh").read_text() match = re.search( r"cat > \"\$CLI_WRAPPER\" <<'EOF'\n(?P