Repository Public MIT
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : ORIX Astra8# File : Scripts/snap.sh9# Module : Scripts10# Repository : https://git.spboucher.ai/orix-astra11# Created : 2026-11-2112# Last Modified : 2026-11-2113#14# Author : Simon-Pierre Boucher15# Position : Professor of Finance16# Institution : Université du Québec en Outaouais (UQO)17# Organization : SP Boucher18# Website : https://spboucher.ai19# Git : https://git.spboucher.ai20#21# Preferred Contact: support@spboucher.ai22# Technical Contact: dev@spboucher.ai23# Security/Admin : admin@spboucher.ai24#25# Copyright (c) 202626# Simon-Pierre Boucher27# All rights reserved where applicable. This file is governed by the28# applicable project license, copyright notices and relevant law.29# Existing third-party rights and notices remain unaffected.30#31# License : Proprietary, all rights reserved (see license file)32# License File : LICENSE33#34# Do not embed credentials, private keys, access tokens,35# certificates or confidential personal information.36#37# =============================================================================38# END OF SP BOUCHER SOURCE HEADER39# =============================================================================4041# Usage: Scripts/snap.sh (development helper)42# Syncs the working tree into build/snap/ORIXAstra, keeping the placeholder feature tabs when SNAP_STUBS=1, and builds it there.43# Lets one part of the app be built and looked at while other parts are mid-edit.44set -euo pipefail45cd "$(dirname "$0")/.."46ROOT="$PWD"; SNAP="build/snap/ORIXAstra"47EXC=(--exclude build --exclude .git --exclude '*.xcodeproj' --exclude .build)48if [ "${SNAP_STUBS:-0}" = 1 ]; then EXC+=(--exclude 'Packages/AstraUI/Sources/Arena' --exclude 'Packages/AstraUI/Sources/Agents' --exclude 'Packages/AstraUI/Sources/Lab' --exclude 'Packages/AstraUI/Sources/Knowledge'); fi49mkdir -p "$SNAP"50rsync -a "${EXC[@]}" ./ "$SNAP/"51cd "$SNAP" && Scripts/build.sh debug52