SPB Git

Repository Public

sim.sh 2.7 KB 56 lines shellscript

1#!/bin/zsh2# =============================================================================3#                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : MacLustr SMS Gateway8# File             : ios/Scripts/sim.sh9# Description      : Lance le build de mise au point sur le simulateur (sans10#                    ouvrir de fenêtre), connecté à la pile locale, et prend11#                    une capture. usage : sim.sh light|dark capture.png12#                    [arguments de lancement supplémentaires…]13# Module           : ios14# Repository       : https://git.spboucher.ai/maclustr-sms15# Project Website  : https://sms.spboucher.ai16# Created          : 2026-11-3017# Last Modified    : 2026-11-3018#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: admin@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 -euo pipefail46cd "$(dirname "$0")/.."47SIM="${MLSMS_SIM:-MLSMS iPhone}"; MODE="${1:-dark}"; OUT="${2:-build/shot.png}"; shift 2 || true48xcrun simctl bootstatus "$SIM" -b >/dev/null 2>&1 || true49xcrun simctl ui "$SIM" appearance "$MODE"50xcrun simctl status_bar "$SIM" override --time "9:41" --batteryState charged --batteryLevel 100 --cellularBars 4 --wifiBars 3 2>/dev/null || true51xcrun simctl install "$SIM" build/DerivedData/Build/Products/Debug-iphonesimulator/MacLustrSMS.app52xcrun simctl terminate "$SIM" ai.spboucher.maclustr.sms 2>/dev/null || true53xcrun simctl launch "$SIM" ai.spboucher.maclustr.sms -serverURL http://localhost:8781 -sessionToken "$(cat build/dev-session.txt)" "$@" >/dev/null54sleep "${MLSMS_WAIT:-3}"55mkdir -p "$(dirname "$OUT")"; xcrun simctl io "$SIM" screenshot "$OUT" >/dev/null 2>&1; echo "$OUT"56
Files main
Menu

Theme