This commit is contained in:
Mark Gregory
2026-11-04 15:16:11 +00:00
parent 110840cd38
commit 5bebd30041
13 changed files with 315 additions and 28 deletions
+6 -2
View File
@@ -1,6 +1,7 @@
#!/bin/bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$ROOT/scripts/common.sh"
CONFIGURATION=Debug
SIGNED=NO
while (($#)); do
@@ -14,8 +15,11 @@ while (($#)); do
done
OUTPUT="${BUILD_OUTPUT_DIR:-$ROOT/build/$CONFIGURATION}"
mkdir -p "$OUTPUT"
DERIVED_DATA="$(mktemp -d "$TARNAX_SCRATCH_ROOT/build-$CONFIGURATION.XXXXXX")"
xcodebuild -project "$ROOT/Tarnax.xcodeproj" -scheme Tarnax \
-configuration "$CONFIGURATION" -destination 'generic/platform=iOS' \
-derivedDataPath "$OUTPUT/DerivedData" CODE_SIGNING_ALLOWED="$SIGNED" \
-derivedDataPath "$DERIVED_DATA" CODE_SIGNING_ALLOWED="$SIGNED" \
build 2>&1 | tee "$OUTPUT/build.log"
echo "App: $OUTPUT/DerivedData/Build/Products/$CONFIGURATION-iphoneos/Tarnax.app"
ditto "$DERIVED_DATA/Build/Products/$CONFIGURATION-iphoneos/Tarnax.app" "$OUTPUT/Tarnax.app"
echo "App: $OUTPUT/Tarnax.app"
echo "Temporary build files: $DERIVED_DATA"