SPB Git

Repository Public

frames.sh 1.4 KB 27 lines shellscript

1#!/usr/bin/env bash2# Food-Ka iOS v23# File: Scripts/frames.sh4# Description: instants figés du geste « la mise en tablette » (argument -FKShelfT, en ms) et du rail des prix5#              (-FKRailP, de 0 à 1). usage : frames.sh <préfixe> [clair|sombre] [signature|courte|compacte]6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9set -uo pipefail10cd "$(dirname "$0")/.."11P="${1:-geste}"; MODE="${2:-clair}"; LEVEL="${3:-signature}"12SIM="${FOODKA_SIM:-FoodKa v2 iPhone}"13U="$(xcrun simctl list devices | grep -F "$SIM (" | head -1 | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')"14APP="$([ "$MODE" = clair ] && echo light || echo dark)"15xcrun simctl ui "$U" appearance "$APP"16PROD="${PROD:-maxi:20894117004_EA}"17for T in ${TIMES:-200 460 700 840 900 1060 1300 1560 1760 1900}; do18  FOODKA_SIM="$SIM" Scripts/build.sh run -FKOpen "produit/$PROD" -FKShelf "$LEVEL" -FKShelfT "$T" -appearance "$APP" -FKInMemory YES >/dev/null 2>&119  sleep "${WAIT:-7}"20  xcrun simctl io "$U" screenshot "build/shots/$P-t$T.png" >/dev/null 2>&1 && echo "build/shots/$P-t$T.png"21done22for R in ${RAILS:-0.15 0.45 0.7 0.85}; do23  FOODKA_SIM="$SIM" Scripts/build.sh run -FKOpen "produit/$PROD" -FKShelf aucune -FKAnchor compare -FKRailP "$R" -appearance "$APP" -FKInMemory YES >/dev/null 2>&124  sleep "${WAIT:-8}"25  xcrun simctl io "$U" screenshot "build/shots/$P-rail$R.png" >/dev/null 2>&1 && echo "build/shots/$P-rail$R.png"26done27
Files main
Menu

Theme