SPB Git

Repository Public

frames.sh 1.2 KB 25 lines shellscript

1#!/usr/bin/env bash2# Fabri-Ka iOS v23# File: Scripts/frames.sh4# Description: instants figés du geste « la pose de l'enseigne » (argument -FBSignT, en ms).5#              usage : frames.sh <préfixe> [clair|sombre] [signature|courte|compacte]   (STORE=1 : entrée dans une boutique)6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9set -uo pipefail10cd "$(dirname "$0")/.."11P="${1:-geste}"; MODE="${2:-clair}"; LEVEL="${3:-signature}"12SIM="${FABRIKA_SIM:-FabriKa v2 iPhone}"13OUT="${OUT:-build/shots}"; mkdir -p "$OUT"14U="$(xcrun simctl list devices | grep -F "$SIM (" | head -1 | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')"15xcrun simctl boot "$U" 2>/dev/null; xcrun simctl bootstatus "$U" >/dev/null 2>&116APP="$([ "$MODE" = clair ] && echo light || echo dark)"17xcrun simctl ui "$U" appearance "$APP"18PROD="${PROD:-cafd5ce66af3bec2d78e}"19OPEN="produit/$PROD"; [ -n "${STORE:-}" ] && OPEN="boutique/${STOREID:-tranchedebois.com}"20for T in ${TIMES:-600 760 900 1000 1100 1240 1440 1620 1800}; do21  FABRIKA_SIM="$SIM" Scripts/build.sh run -FBOpen "$OPEN" -FBSign "$LEVEL" -FBSignT "$T" -appearance "$APP" -FBInMemory YES >/dev/null 2>&122  sleep "${WAIT:-7}"23  xcrun simctl io "$U" screenshot "$OUT/$P-t$T.png" >/dev/null 2>&1 && echo "$OUT/$P-t$T.png"24done25
Files main
Menu

Theme