SPB Git

Repository Public

shot.sh 2.4 KB 56 lines shellscript

1#!/usr/bin/env bash2# =============================================================================3#                  SP BOUCHER | SOFTWARE & RESEARCH4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : SP ID & Card Vault8# File             : scripts/shot.sh9# Module           : Scripts10# Repository       : https://git.spboucher.ai/sp-id-card-vault11# Project Website  : Not specified12# Created          : 2026-12-0213# Last Modified    : 2026-12-0214#15# Author           : Simon-Pierre Boucher16# Position         : Professor of Finance17# Institution      : Université du Québec en Outaouais (UQO)18# Organization     : SP Boucher19# Website          : https://spboucher.ai20# Git              : https://git.spboucher.ai21#22# Preferred Contact: contact@spboucher.ai23# Development      : dev@spboucher.ai24# Support          : support@spboucher.ai25# Security/Admin   : admin@spboucher.ai26#27# Copyright (c) 202628# Simon-Pierre Boucher29# All rights reserved where applicable. This file is governed by the30# applicable project license, copyright notices and relevant law.31# Existing third-party rights and notices remain unaffected.32#33# License          : None specified (no license file in this repository)34#35# Do not embed credentials, private keys, access tokens,36# certificates or confidential personal information.37#38# =============================================================================39# END OF SP BOUCHER SOURCE HEADER40# =============================================================================4142# Launches the Debug build in the simulator on a given screen with the fictitious43# demo vault and saves a screenshot. usage: scripts/shot.sh <name> [extra launch args…]44set -euo pipefail45cd "$(dirname "$0")/.."46SIM="${SPV_SIM:-SPVault iPhone}"; DD="${SPV_DD:-build/dd}"; OUT="${SPV_SHOTS:-build/shots}"47name="$1"; shift || true48mkdir -p "$OUT"49xcrun simctl bootstatus "$SIM" -b >/dev/null 2>&1 || xcrun simctl boot "$SIM" 2>/dev/null || true50xcrun simctl terminate "$SIM" ai.spboucher.idcardvault >/dev/null 2>&1 || true51xcrun simctl install "$SIM" "$DD/Build/Products/Debug-iphonesimulator/SPVault.app"52xcrun simctl launch "$SIM" ai.spboucher.idcardvault -uiTesting -seedDemo "$@" >/dev/null53sleep "${SPV_WAIT:-5}"54xcrun simctl io "$SIM" screenshot "$OUT/$name.png" >/dev/null 2>&155echo "$OUT/$name.png"56
Files main
Menu

Theme