Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Immo-Ka iOS8# File : Scripts/shots.sh9# Description : tournée de captures d'écran sur un simulateur (arguments10# de lancement, aucun pilotage d'interface). usage :11# shots.sh <préfixe> [clair|sombre] (IMMOKA_SIM pour choisir12# le simulateur)13# Module : Scripts14# Repository : https://git.spboucher.ai/immo-ka-ios-v315# Project Website : https://www.immo-ka.com16# Created : 2026-11-2517# Last Modified : 2026-11-2818#19# Author : Simon-Pierre Boucher20# Position : Professor of Finance21# Institution : Université du Québec en Outaouais (UQO)22# Organization : SP Boucher23# Website : https://spboucher.ai24# Git : https://git.spboucher.ai25#26# Preferred Contact: support@spboucher.ai27# Technical Contact: dev@spboucher.ai28# Security/Admin : admin@spboucher.ai29#30# Copyright (c) 202631# Simon-Pierre Boucher32# All rights reserved where applicable. This file is governed by the33# applicable project license, copyright notices and relevant law.34# Existing third-party rights and notices remain unaffected.35#36# License : None specified (no license file in this repository)37#38# Do not embed credentials, private keys, access tokens,39# certificates or confidential personal information.40#41# =============================================================================42# END OF SP BOUCHER SOURCE HEADER43# =============================================================================4445set -uo pipefail46cd "$(dirname "$0")/.."47P="${1:-tour}"; MODE="${2:-sombre}"48SIM="${IMMOKA_SIM:-ImmoKa-v3}"49U="$(xcrun simctl list devices | grep -F "$SIM (" | head -1 | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')"50xcrun simctl boot "$U" 2>/dev/null; xcrun simctl bootstatus "$U" >/dev/null 2>&151xcrun simctl ui "$U" appearance "$([ "$MODE" = clair ] && echo light || echo dark)"52UIDL="$(cat build/sample-uid.txt 2>/dev/null)"53UID2="$(cat build/sample-uid2.txt 2>/dev/null)"54shot() { # nom, attente, arguments…55 local name="$1" wait="$2"; shift 256 # ONLY="explore listing" : ne refait que les captures dont le nom commence par un de ces mots57 if [ -n "${ONLY:-}" ]; then local ok=0; for o in $ONLY; do case "$name" in "$o"*) ok=1;; esac; done; [ $ok = 1 ] || return 0; fi58 # le thème de l'app est clair par défaut : on l'impose par argument pour le tour sombre59 IMMOKA_SIM="$SIM" Scripts/build.sh run "$@" -appearance "$([ "$MODE" = clair ] && echo light || echo dark)" >/dev/null 2>&160 sleep "$wait"61 IMMOKA_SIM="$SIM" Scripts/build.sh shot "$P-$name" >/dev/null && echo "build/shots/$P-$name.png"62}63shot discover 13 -IKTab discover -IKInMemory YES64if [ "${DOOR:-1}" = 1 ]; then65 for T in 0.10 0.30 0.55 0.80 0.95 1.08; do66 shot "door-$T" 12 -IKTab discover -IKDoorDemo "$T" -IKInMemory YES67 done68fi69shot explore 16 -IKCity Montréal -IKInMemory YES70shot explore-select 16 -IKTab explore -IKSelect "$UIDL" -IKInMemory YES71shot filters 10 -IKTab explore -IKSheet filters -IKInMemory YES72shot listing 10 -IKOpen "propriete/$UIDL" -IKInMemory YES73shot listing-building 11 -IKOpen "propriete/$UIDL" -IKAnchor building -IKInMemory YES74shot listing-analyses 11 -IKOpen "propriete/$UIDL" -IKAnchor analyses -IKInMemory YES75shot listing-ownership 14 -IKOpen "propriete/$UIDL" -IKAnchor ownership -IKInMemory YES76shot listing-links 14 -IKOpen "propriete/$UIDL" -IKAnchor links -IKInMemory YES77shot listing-comparables 14 -IKOpen "propriete/$UIDL" -IKAnchor comparables -IKInMemory YES78shot listing-financing 12 -IKOpen "propriete/$UIDL" -IKAnchor financing -IKInMemory YES79shot listing-location 12 -IKOpen "propriete/$UIDL" -IKAnchor location -IKInMemory YES80shot listing-quartier 12 -IKOpen "propriete/$UIDL" -IKAnchor quartier -IKInMemory YES81shot listing-broker 13 -IKOpen "propriete/$UIDL" -IKAnchor broker -IKInMemory YES82shot favorites 11 -IKTab favorites -IKInMemory YES -IKSeed "$UIDL,$UID2"83shot favorites-empty 6 -IKTab favorites -IKInMemory YES84shot compare 11 -IKTab favorites -IKRoute compare -IKInMemory YES -IKSeed "$UIDL,$UID2"85shot pros 9 -IKTab pros -IKInMemory YES86shot agency 11 -IKTab pros -IKOpen "agence/RE%2FMAX" -IKInMemory YES87shot registry 9 -IKTab pros -IKRoute registry -IKInMemory YES88shot inspectors 9 -IKTab pros -IKRoute inspectors -IKInMemory YES89shot cities 9 -IKTab pros -IKRoute cities -IKInMemory YES90shot city 11 -IKTab pros -IKOpen "ville/Gatineau" -IKInMemory YES91shot market 12 -IKTab market -IKInMemory YES92shot market-city 12 -IKTab market -IKOpen "marche/gatineau" -IKInMemory YES93shot neighborhood 11 -IKTab market -IKOpen "quartier/gatineau/aylmer" -IKInMemory YES94shot neighborhoods 10 -IKTab market -IKRoute neighborhoods -IKInMemory YES95shot brokers 8 -IKTab pros -IKRoute brokers -IKInMemory YES96shot search-nl 16 -IKOpen "recherche?nl=maison 3 chambres à Gatineau sous 500 000 avec garage" -IKInMemory YES97shot rates 10 -IKTab market -IKRoute rates -IKInMemory YES98shot calculator 8 -IKTab market -IKRoute calculator -IKInMemory YES99shot vraiprix 7 -IKTab market -IKRoute vraiprix -IKInMemory YES100shot settings 5 -IKTab market -IKRoute settings -IKInMemory YES101