SPB Git

Repository Public MIT

screenshots.sh 1.7 KB 34 lines shellscript

1#!/usr/bin/env bash2# ORIX Calc3# File: Scripts/screenshots.sh4# Description: Captures the real application in the dedicated simulators for the README (docs/screenshots). Requires a Debug build5#              (Scripts/generate.sh && xcodebuild … build). Every image is the running app; nothing is composited.6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9set -euo pipefail10cd "$(dirname "$0")/.."11out=docs/screenshots12mkdir -p "$out"13shot() { # device name mode [extra args…]14  local device="$1" name="$2"; shift 215  Scripts/shot.sh "$device" "$out/$name.png" -ORIXDemo 1 "$@" > /dev/null16  sips -Z 1600 "$out/$name.png" > /dev/null17  echo "  $name.png"18}19echo "iPhone"20shot iphone standard      -ORIXMode standard   -ORIXAppearance dark  -ORIXExpression "1234.5*(3+4)"21shot iphone scientific    -ORIXMode scientific -ORIXAppearance dark  -ORIXExpression "sin(30)^2+sqrt(2)"22shot iphone financial     -ORIXMode financial  -ORIXAppearance dark  -ORIXSection tvm23shot iphone graph         -ORIXMode graph      -ORIXAppearance dark24shot iphone math          -ORIXMode math       -ORIXAppearance dark25shot iphone statistics    -ORIXMode statistics -ORIXAppearance dark26shot iphone convert       -ORIXMode convert    -ORIXAppearance dark27shot iphone workspace     -ORIXMode workspace  -ORIXAppearance dark28shot iphone standard-light -ORIXMode standard  -ORIXAppearance light -ORIXExpression "200+10%"29echo "iPad"30shot ipad ipad-split-workspace -ORIXMode workspace -ORIXAppearance dark -ORIXCompanion 131shot ipad ipad-graph           -ORIXMode graph     -ORIXAppearance light32shot ipad ipad-financial       -ORIXMode financial -ORIXAppearance light -ORIXSection bond33shot ipad ipad-convert         -ORIXMode convert   -ORIXAppearance light34
Files main
Menu

Theme