Repository Public
1#!/usr/bin/env bash2# =============================================================================3# SP BOUCHER | INFRASTRUCTURE & AUTOMATION4# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project : ORIX Cosmos8# File : Scripts/release-config.sh9# Module : Scripts10# 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: Scripts/release-config.sh43# Description: Sourced by the release scripts: loads the local, non-versioned signing configuration (Scripts/release.local.env) and defines shared names. Contains no secret.44#45# Author: Simon-Pierre Boucher46# Contact: contact@spboucher.ai47# Scripts/release.local.env (git-ignored) may define:48# NOTARY_PROFILE name of an EXISTING notarytool keychain profile (created by the owner with49# `xcrun notarytool store-credentials`). Never a password, never a key.50# SIGN_IDENTITY optional override of the Developer ID Application identity name.51# See Scripts/release.local.env.example.52APP_NAME="ORIX Cosmos"53BUNDLE_ID="ai.spboucher.orix.cosmos"54APP="dist/$APP_NAME.app"55ARTIFACT_PREFIX="ORIX-Cosmos"56if [[ -f "$(dirname "${BASH_SOURCE[0]}")/release.local.env" ]]; then57 # shellcheck disable=SC109158 source "$(dirname "${BASH_SOURCE[0]}")/release.local.env"59fi60require_profile() {61 if [[ -z "${NOTARY_PROFILE:-}" ]]; then62 echo "BLOCKED: NOTARY_PROFILE is not set. Copy Scripts/release.local.env.example to Scripts/release.local.env and name an existing notarytool keychain profile." >&263 exit 464 fi65}66app_version() { /usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' "$APP/Contents/Info.plist"; }67app_build() { /usr/libexec/PlistBuddy -c 'Print CFBundleVersion' "$APP/Contents/Info.plist"; }68