Initial Commit
This commit is contained in:
Executable
+21
@@ -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"
|
||||
Reference in New Issue
Block a user