SPB Git

Repository Public

build_all.sh 2.7 KB 64 lines shellscript

1#!/usr/bin/env bash2# =============================================================================3#                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : ORIX Cosmos8# File             : DataPipeline/textures/build_all.sh9# Module           : DataPipeline10# Repository       : https://git.spboucher.ai/orix-cosmos11# Project Website  : https://www.orixlab.dev12# Created          : 2026-11-2413# Last Modified    : 2026-11-2414#15# Author           : Simon-Pierre Boucher16# Position         : Professor of Finance17# Institution      : Université du Québec en Outaouais (UQO)18# Organization     : SP Boucher19# Website          : https://spboucher.ai20# Git              : https://git.spboucher.ai21#22# Preferred Contact: support@spboucher.ai23# Technical Contact: dev@spboucher.ai24# Security/Admin   : admin@spboucher.ai25#26# Copyright (c) 202627# Simon-Pierre Boucher28# All rights reserved where applicable. This file is governed by the29# applicable project license, copyright notices and relevant law.30# Existing third-party rights and notices remain unaffected.31#32# License          : None specified (no license file in this repository)33#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# ORIX Cosmos42# File: DataPipeline/textures/build_all.sh43# Description: Runs the whole planetary pipeline in order: fetch facts and textures into the raw cache, parse the facts, build the three texture packs and their manifests, then assemble the planetary data file and its embedded Swift copy.44#45# Author: Simon-Pierre Boucher46# Contact: contact@spboucher.ai47#48# Usage: DataPipeline/textures/build_all.sh [--offline]     (--offline skips the two download steps and reuses the raw cache)49# Network: official public archives only (NASA, USGS, PDS, STScI/MAST, JPL SSD). About 2.3 GB of raw data.50# Requirements: bash, curl, python3 (standard library), swiftc (Xcode). No third-party packages.51set -euo pipefail5253HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"54ROOT="$(cd "$HERE/../.." && pwd)"5556if [ "${1:-}" != "--offline" ]; then57  bash "$HERE/fetch_facts.sh"58  python3 "$HERE/fetch_textures.py" "$ROOT"59fi60python3 -I "$HERE/parse_facts.py" "$ROOT"61python3 "$HERE/build_textures.py" "$ROOT"62python3 "$HERE/build_planetary.py" "$ROOT"63echo "done: Resources/Packs/{textures-starter,textures-hd,sky-imagery}, DataPipeline/textures/data/planetary.json"64
Files main
Menu

Theme