Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : Vrai-Prix 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] (VRAIPRIX_SIM pour le12# simulateur, ONLY="home property" pour filtrer,13# EXTRA="-VPBaseURL http://127.0.0.1:9" pour simuler la14# panne de réseau)15# Module : Scripts16# Repository : https://git.spboucher.ai/vrai-prix-ios-v317# Project Website : https://www.vrai-prix.com18# Created : 2026-11-2619# Last Modified : 2026-11-2620#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")/.."49P="${1:-tour}"; MODE="${2:-clair}"50SIM="${VRAIPRIX_SIM:-VraiPrix v2 iPhone}"51U="$(xcrun simctl list devices | grep -F "$SIM (" | head -1 | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')"52xcrun simctl boot "$U" 2>/dev/null; xcrun simctl bootstatus "$U" >/dev/null 2>&153APP="$([ "$MODE" = clair ] && echo light || echo dark)"54xcrun simctl ui "$U" appearance "$APP"55UNIT="${UNIT:-66023954154278060000000}" # 728, avenue Pratt, Montréal (vendue en novembre 2026)56UNIT2="${UNIT2:-23027459435665110000000}" # 5681, rue des Campanules, Québec57LISTING="${LISTING:-remax_quebec:16616209}"58shot() { # nom, attente, arguments…59 local name="$1" wait="$2"; shift 260 if [ -n "${ONLY:-}" ]; then local ok=0; for o in $ONLY; do case "$name" in "$o"*) ok=1;; esac; done; [ $ok = 1 ] || return 0; fi61 VRAIPRIX_SIM="$SIM" Scripts/build.sh run "$@" -appearance "$APP" -VPInMemory YES ${EXTRA:-} >/dev/null 2>&162 sleep "$wait"63 xcrun simctl io "$U" screenshot "build/shots/$P-$name.png" >/dev/null 2>&1 && echo "build/shots/$P-$name.png"64}65shot home 8 -VPTab home66shot search 8 -VPTab home -VPQuery "5681 campan"67shot search-none 8 -VPTab home -VPQuery "99999 rue inexistante"68shot property 12 -VPOpen "propriete/$UNIT" -VPPlumb aucune69shot property-gable 9 -VPOpen "propriete/$UNIT2" -VPPlumb aucune -VPHero gable70for A in facts roll confidence sales comps trend location sector methods; do71 shot "property-$A" 11 -VPOpen "propriete/$UNIT" -VPPlumb aucune -VPAnchor "$A" -VPHero gable72done73shot listing 12 -VPOpen "a-vendre/$LISTING" -VPPlumb aucune74shot listings 10 -VPTab market -VPRoute listings75shot map-sales 12 -VPTab map76shot map-select 14 -VPTab map -VPSelect YES77shot map-units 12 -VPTab map -VPLayer units -VPMap 46.8139,-71.2080,0.00678shot map-listings 12 -VPTab map -VPLayer listings -VPMap 46.8139,-71.2280,0.0579shot map-far 10 -VPTab map -VPMap 46.9,-71.9,580shot map-filters 9 -VPTab map -VPSheet mapfilters81shot sales 9 -VPTab sales82shot sales-filters 9 -VPTab sales -VPSheet salefilters83shot market 10 -VPTab market84shot index 9 -VPTab market -VPRoute index85shot markettest 9 -VPTab market -VPRoute markettest86shot municipalities 8 -VPTab market -VPRoute municipalities87shot municipality 9 -VPTab market -VPOpen "municipalite/quebec"88shot cost 12 -VPTab market -VPOpen "cout/$UNIT"89shot manual 7 -VPTab home -VPRoute manual90shot methodology 6 -VPTab market -VPRoute methodology91shot favorites-empty 6 -VPTab library92shot favorites 10 -VPTab library -VPSeed "$UNIT,$UNIT2"93shot compare 10 -VPTab library -VPRoute compare -VPSeed "$UNIT,$UNIT2"94shot settings 6 -VPTab market -VPRoute settings95shot about 6 -VPTab market -VPRoute about96shot privacy 6 -VPTab market -VPRoute privacy97