SPB Git

Repository Public License

release.sh 2.4 KB 58 lines shellscript

1#!/usr/bin/env bash2# =============================================================================3#                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# Project          : ORIX Monitor8# File             : Scripts/release.sh9# Description      : Full local release: build, verify signature, notarize +10#                    staple the app, package, notarize + staple the DMG,11#                    checksums, Gatekeeper assessment. Publishes nothing.12# Module           : Scripts13# Repository       : https://git.spboucher.ai/orix-monitor14# Created          : 2026-11-2115# Last Modified    : 2026-11-2116#17# Author           : Simon-Pierre Boucher18# Position         : Professor of Finance19# Institution      : Université du Québec en Outaouais (UQO)20# Organization     : SP Boucher21# Website          : https://spboucher.ai22# Git              : https://git.spboucher.ai23#24# Preferred Contact: support@spboucher.ai25# Technical Contact: dev@spboucher.ai26# Security/Admin   : admin@spboucher.ai27#28# Copyright (c) 202629# Simon-Pierre Boucher30# All rights reserved where applicable. This file is governed by the31# applicable project license, copyright notices and relevant law.32# Existing third-party rights and notices remain unaffected.33#34# License          : Proprietary, all rights reserved (see license file)35# License File     : LICENSE36#37# Do not embed credentials, private keys, access tokens,38# certificates or confidential personal information.39#40# =============================================================================41# END OF SP BOUCHER SOURCE HEADER42# =============================================================================4344set -euo pipefail45cd "$(dirname "$0")/.."46Scripts/build.sh test47Scripts/build.sh release48Scripts/sign.sh49Scripts/notarize.sh "dist/ORIX Monitor.app" app50Scripts/package.sh zip        # zip of the stapled app51Scripts/package.sh dmg52VERSION="$(/usr/libexec/PlistBuddy -c 'Print CFBundleShortVersionString' "dist/ORIX Monitor.app/Contents/Info.plist")"53Scripts/notarize.sh "dist/ORIX-Monitor-$VERSION.dmg" dmg54Scripts/package.sh checksums55echo "== Gatekeeper =="56spctl --assess --type execute --verbose=2 "dist/ORIX Monitor.app" 2>&1 | sed 's/^/  /'57spctl --assess --type open --context context:primary-signature --verbose=2 "dist/ORIX-Monitor-$VERSION.dmg" 2>&1 | sed 's/^/  /'58
Files main
Menu

Theme