Files
huike-e2e-moicen/scripts/install-with-proxy.sh
T
weli c5d054789e feat: Playwright against deployed music-room (shell + optional unionid chain)
No Rust/Compose; GitHub Actions with MOICEN_E2E_UNIONID secret; dotenv .env.e2e; proxy install script.

Made-with: Cursor
2026-04-26 17:01:52 +08:00

18 lines
492 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 经本机 HTTP 代理安装 npm 与 Playwright Chromium(默认 http://localhost:7890
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
PROXY_URL="${HTTP_PROXY:-${HTTPS_PROXY:-http://localhost:7890}}"
export HTTP_PROXY="$PROXY_URL"
export HTTPS_PROXY="$PROXY_URL"
export ALL_PROXY="${ALL_PROXY:-$PROXY_URL}"
export NO_PROXY="${NO_PROXY:-127.0.0.1,localhost}"
echo "Using proxy: $HTTP_PROXY"
cd "$ROOT"
npm ci
npx playwright install chromium --with-deps