29 lines
1.5 KiB
Bash
Executable File
29 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
# Regenerate the README screenshots in docs/media/ from the demo library (see make_demo_home.py).
|
|
# These are headless renders of the real UI with the software renderer: static frames, no animation.
|
|
# docs/demo/screenshots.sh [path/to/voidrunner/art]
|
|
set -e
|
|
cd "$(dirname "$0")/../.."
|
|
DEMO=${SUMMIT_DEMO_HOME:-/tmp/demo}
|
|
python3 docs/demo/make_demo_home.py "$DEMO" "$@"
|
|
cargo build --release -p summit-gui
|
|
shot() {
|
|
name=$1; shift
|
|
rm -f "$DEMO/.config/summit/ui.toml"
|
|
env HOME="$DEMO" XDG_CONFIG_HOME="$DEMO/.config" XDG_DATA_HOME="$DEMO/.local/share" \
|
|
SUMMIT_SHOT=docs/media SUMMIT_NAME="summit-$name" "$@" ./target/release/summit-gui "$DEMO/Games"
|
|
}
|
|
shot home
|
|
shot home-focus SUMMIT_KEYS="Right Right Right"
|
|
shot library SUMMIT_VIEW=library SUMMIT_KEYS="Down Right Right"
|
|
shot list SUMMIT_VIEW=library SUMMIT_LAYOUT=list SUMMIT_KEYS="Down Down Down"
|
|
shot unfiltered SUMMIT_VIEW=unfiltered SUMMIT_KEYS="Down"
|
|
shot detail SUMMIT_DETAIL=custom:voidrunner
|
|
shot settings SUMMIT_VIEW=settings
|
|
shot steam SUMMIT_THEME=steam SUMMIT_KEYS="Right"
|
|
shot daylight SUMMIT_THEME=daylight SUMMIT_VIEW=library SUMMIT_LAYOUT=grid SUMMIT_KEYS="Right"
|
|
shot violet SUMMIT_THEME=violet SUMMIT_KEYS="Right Right"
|
|
shot contrast SUMMIT_THEME=contrast SUMMIT_VIEW=library SUMMIT_LAYOUT=list SUMMIT_KEYS="Down"
|
|
shot oled SUMMIT_THEME=oled SUMMIT_DETAIL="hollow tide"
|
|
shot deck SUMMIT_SIZE=1280x800 SUMMIT_KEYS="Down Right"
|