#!/bin/sh set -eu if [ -n "${PLAYWRIGHT_CHROMIUM_EXECUTABLE:-}" ]; then exec "$PLAYWRIGHT_CHROMIUM_EXECUTABLE" \ --user-data-dir=/tmp/zds-chromium-insecure-profile \ --disable-web-security \ --ignore-certificate-errors \ --allow-running-insecure-content \ --disable-features=BlockInsecurePrivateNetworkRequests,PrivateNetworkAccessSendPreflights,PrivateNetworkAccessRespectPreflightResults \ "$@" fi for exe in "$HOME"/Library/Caches/ms-playwright/chromium-*/chrome-mac-arm64/Google\ Chrome\ for\ Testing.app/Contents/MacOS/Google\ Chrome\ for\ Testing; do if [ -x "$exe" ]; then exec "$exe" \ --user-data-dir=/tmp/zds-chromium-insecure-profile \ --disable-web-security \ --ignore-certificate-errors \ --allow-running-insecure-content \ --disable-features=BlockInsecurePrivateNetworkRequests,PrivateNetworkAccessSendPreflights,PrivateNetworkAccessRespectPreflightResults \ "$@" fi done echo "Playwright Chromium executable not found; run: bunx playwright install chromium" >&2 exit 127