Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Lou-Ka iOS8# File : Scripts/shots-compte.sh9# Description : captures des écrans du compte qui n'exigent aucune session10# (arguments de lancement, aucun pilotage d'interface), dans11# docs/captures/. Les écrans connectés viennent du test12# d'interface AccountUITests (Scripts/build.sh uitest, puis13# Scripts/captures.py). usage : shots-compte.sh14# [clair|sombre] (LOUKA_SIM pour choisir le simulateur)15# Module : Scripts16# Repository : https://git.spboucher.ai/lou-ka-ios-v317# Project Website : https://www.lou-ka.com18# Created : 2026-11-3019# Last Modified : 2026-11-3020#21# Author : Simon-Pierre Boucher22# Position : Professor of Finance23# Institution : Université du Québec en Outaouais (UQO)24# Organization : SP Boucher25# Website : https://spboucher.ai26# Git : https://git.spboucher.ai27#28# Preferred Contact: support@spboucher.ai29# Technical Contact: dev@spboucher.ai30# Security/Admin : admin@spboucher.ai31#32# Copyright (c) 202633# Simon-Pierre Boucher34# All rights reserved where applicable. This file is governed by the35# applicable project license, copyright notices and relevant law.36# Existing third-party rights and notices remain unaffected.37#38# License : None specified (no license file in this repository)39#40# Do not embed credentials, private keys, access tokens,41# certificates or confidential personal information.42#43# =============================================================================44# END OF SP BOUCHER SOURCE HEADER45# =============================================================================4647set -uo pipefail48cd "$(dirname "$0")/.."49MODE="${1:-clair}"50SIM="${LOUKA_SIM:-LouKa-v3}"51TAG="$([ "$SIM" = "LouKa-v3" ] && echo iphone || echo ipad)-$MODE"52A="$([ "$MODE" = clair ] && echo light || echo dark)"53U="$(xcrun simctl list devices | grep -F "$SIM (" | head -1 | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')"54xcrun simctl boot "$U" 2>/dev/null; xcrun simctl bootstatus "$U" >/dev/null 2>&155xcrun simctl ui "$U" appearance "$A"56mkdir -p docs/captures57shot() { # nom, attente, arguments…58 local name="$1" wait="$2"; shift 259 LOUKA_SIM="$SIM" Scripts/build.sh run -LKInMemory YES -appearance "$A" "$@" >/dev/null 2>&160 sleep "$wait"61 xcrun simctl io "$U" screenshot "docs/captures/$TAG-$name.png" >/dev/null 2>&1 && echo "docs/captures/$TAG-$name.png"62}63shot connexion 7 -LKTab favorites -LKAccount signin64shot creation 6 -LKTab favorites -LKAccount signup65shot code 6 -LKTab favorites -LKAccount code66shot mot-de-passe-oublie 6 -LKTab favorites -LKAccount forgot67shot nouveau-mot-de-passe 6 -LKTab favorites -LKAccount reset68shot favoris-sans-compte 6 -LKTab favorites69shot reglages-sans-compte 6 -LKTab market -LKRoute settings70shot confidentialite 6 -LKTab market -LKRoute privacy71