13 lignes
578 B
Bash
13 lignes
578 B
Bash
#!/bin/sh
|
|
# Rend chaque écran des maquettes en PNG 1920x1080 avec Chrome sans interface.
|
|
# Usage : sh rendre.sh [A B C]
|
|
cd "$(dirname "$0")"
|
|
CH="/c/Program Files/Google/Chrome/Application/chrome.exe"
|
|
for p in ${@:-A B C}; do
|
|
for e in titre solo multi options pause; do
|
|
"$CH" --headless=new --disable-gpu --hide-scrollbars --force-device-scale-factor=1 \
|
|
--allow-file-access-from-files --window-size=1920,1080 --virtual-time-budget=1500 \
|
|
--screenshot="$(cygpath -w "$PWD/$p/$e.png")" "file:///$(cygpath -m "$PWD/$p/maquette.html")#$e" 2>/dev/null
|
|
done
|
|
done
|