Initial Commit

This commit is contained in:
Mark Gregory
2026-11-04 14:59:42 +00:00
commit 21334a1e5e
22 changed files with 1753 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
CONFIGURATION=Debug
SIGNED=NO
while (($#)); do
case "$1" in
--release) CONFIGURATION=Release ;;
--signed) SIGNED=YES ;;
-h|--help) echo 'Usage: scripts/build.sh [--release] [--signed]'; exit 0 ;;
*) echo "Unknown option: $1" >&2; exit 2 ;;
esac
shift
done
OUTPUT="${BUILD_OUTPUT_DIR:-$ROOT/build/$CONFIGURATION}"
mkdir -p "$OUTPUT"
xcodebuild -project "$ROOT/Tarnax.xcodeproj" -scheme Tarnax \
-configuration "$CONFIGURATION" -destination 'generic/platform=iOS' \
-derivedDataPath "$OUTPUT/DerivedData" CODE_SIGNING_ALLOWED="$SIGNED" \
build 2>&1 | tee "$OUTPUT/build.log"
echo "App: $OUTPUT/DerivedData/Build/Products/$CONFIGURATION-iphoneos/Tarnax.app"