chore(verify): store headless capture script used as verification evidence
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
71a77608f8
commit
35d89dc4e2
1 file changed
+12
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Headless Chrome screenshot of the sample page (WSL2 → Windows Chrome).
|
||||||
|
# Usage: scripts/capture-sample.sh <output.png> [url]
|
||||||
|
# Requires the dev server: npm run dev -- --host 127.0.0.1 --port 5173
|
||||||
|
set -euo pipefail
|
||||||
|
OUT_WSL="${1:?output png path (WSL path)}"
|
||||||
|
URL="${2:-http://127.0.0.1:5173/?sample=1}"
|
||||||
|
CHROME="/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"
|
||||||
|
mkdir -p "$(dirname "$OUT_WSL")"
|
||||||
|
timeout 200 "$CHROME" --headless=new --no-sandbox --use-gl=angle --use-angle=swiftshader \
|
||||||
|
--enable-unsafe-swiftshader --enable-logging=stderr --v=0 --window-size=1600,1000 \
|
||||||
|
--timeout=45000 --screenshot="$(wslpath -w "$OUT_WSL")" "$URL"
|
||||||
Reference in new issue
Block a user