SPB Git

Repository Public

build.sh 822 B 16 lines shellscript

1#!/bin/bash2# ORIX Docs3# File: Scripts/build.sh4# Description: Generates the Xcode project and builds the app. Usage: Scripts/build.sh [debug|release]  (release = Developer ID signed).5#6# Author: Simon-Pierre Boucher7# Contact: contact@spboucher.ai8set -euo pipefail9cd "$(dirname "$0")/.."10CONFIG="Debug"; [[ "${1:-debug}" == "release" ]] && CONFIG="Release"11xcodegen generate --quiet12xcodebuild -project ORIXDocs.xcodeproj -scheme ORIXDocs -configuration "$CONFIG" -derivedDataPath build/DerivedData build 2>&1 \13  | sed 's/\x1b\[[0-9;]*m//g' | grep -E "^/.*(error|warning): |\*\* BUILD" | grep -vE "DVT|CoreSimulator" | sort -u || true14[[ -d "build/DerivedData/Build/Products/$CONFIG/ORIX Docs.app" ]] || { echo "ERROR: build failed" >&2; exit 1; }15echo "Built build/DerivedData/Build/Products/$CONFIG/ORIX Docs.app"16
Files main
Menu

Theme