13 lines
544 B
Bash
Executable File
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
|