Files
ink-website/scripts/capture/run.sh
T
Your Name 9e6804c1ab
Deploy to GitHub Pages / build (push) Canceled after 0s
Deploy to GitHub Pages / deploy (push) Canceled after 0s
Initial commit
2026-10-11 18:09:42 +02:00

13 lines
544 B
Bash
Executable File

#!/usr/bin/env sh
# Captures all website screenshots from the real Ink app (read only) into src/assets/screens/.
# Usage: scripts/capture/run.sh (env: INK_APP, OUT, SCENES)
set -e
HERE="$(cd "$(dirname "$0")" && pwd)"
INK_APP="${INK_APP:-$HERE/../../../../App/Ink}"
INK_APP="$(cd "$INK_APP" && pwd)"
export INK_APP
for theme in dark light; do
THEME=$theme "$INK_APP/node_modules/.bin/electron" "$HERE/capture.cjs" \
--ozone-platform=headless --force-device-scale-factor=1.5 --no-sandbox 2>&1 | grep -E 'saved|FAILED|Error' || true
done