RU
apps/caramail-chat / tools / site / shots.sh · commit 6eebcdb
#!/usr/bin/env bash# The screenshots of the site: the login window and the chat (its demo), then the pictures (make_images.py).set -euo pipefailcd "$(dirname "$0")/../../../.."JUMPHP_SCENE='App\Form\LoginForm' bin/jumphp shot caramail-chat 60 var/screenshots/login.pngJUMPHP_SCENE='App\Form\ChatForm' JUMPHP_SCENE_PARAMS='{"demo":true}' bin/jumphp shot caramail-chat 420 var/screenshots/chat.pngfor t in rooms search private; do  JUMPHP_SCENE='App\Form\ChatForm' JUMPHP_SCENE_PARAMS="{\"demo\":true,\"tab\":\"$t\"}" bin/jumphp shot caramail-chat 420 "var/screenshots/tab-$t.png"done# the phone: the same demo in a 390 x 760 window (project.yaml put back after)cp apps/caramail-chat/config/project.yaml /tmp/carachat-project.yamlsed -i 's/^  width: 1024/  width: 390/; s/^  height: 700/  height: 760/' apps/caramail-chat/config/project.yamlJUMPHP_SCENE='App\Form\ChatForm' JUMPHP_SCENE_PARAMS='{"demo":true}' bin/jumphp shot caramail-chat 420 var/screenshots/phone.png || truecp /tmp/carachat-project.yaml apps/caramail-chat/config/project.yamlpython3 -I apps/caramail-chat/tools/site/make_images.py apps/caramail-chat