#!/bin/sh set -eu cd "$(dirname "$0")/.." ./tools/check-config.sh ./tools/check-secrets.py ./tools/check-extension-sandbox.sh ./tools/check-packages.sh python3 -m py_compile \ jwebot_edge.py \ jwebot_edge_delivery.py \ jwebot_release_update.py \ wechat_local_ocr.py \ wechat_adaptive_recorder.py \ wechat_adaptive_gui_bridge.py \ wechat_health_watch.py \ tools/activate-release.py \ tools/create-plugin.py \ tools/jwebot-config.py \ tools/package-plugin.py \ tools/performance-baseline.py \ tools/rollback-release.py \ tools/check-secrets.py \ tools/sign-release.py \ tools/sync-local-extensions.py \ tools/verify-release.py \ tools/validate-plugin.py bash -n wechat-gui-bridge for script in deploy/scripts/*.sh; do if head -n 1 "$script" | grep -q 'bash'; then bash -n "$script" else sh -n "$script" fi done if command -v rg >/dev/null 2>&1; then debug_matches=$( rg -l '192\.168\.31\.15:777|10\.4\.33\.12:777|#region debug-point|\[DEBUG\]' \ *.py README.md docs/configuration-inventory.md \ || true ) else debug_matches=$( grep -R -l -E \ '192\.168\.31\.15:777|10\.4\.33\.12:777|#region debug-point|\[DEBUG\]' \ -- *.py README.md docs/configuration-inventory.md \ || true ) fi unexpected=$debug_matches if [ -n "$unexpected" ]; then echo "Unexpected emergency debug hook references:" >&2 echo "$unexpected" >&2 exit 1 fi python3 -m unittest discover -s tests -q