Files
aetherbound-guild/tools/export_runtime_ios.sh
T

24 lines
597 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
RUNTIME="$ROOT/runtime"
GODOT=${GODOT_BIN:-/Applications/Godot.app/Contents/MacOS/Godot}
OUTPUT=${1:-$ROOT/build/ios/AetherboundGuild}
if [ ! -x "$GODOT" ]; then
echo "Godot executable not found: $GODOT" >&2
exit 91
fi
if [ ! -f "$RUNTIME/export_presets.cfg" ]; then
echo "runtime/export_presets.cfg is missing" >&2
exit 92
fi
mkdir -p "$(dirname "$OUTPUT")"
"$GODOT" --headless --audio-driver Dummy --path "$RUNTIME" \
--export-debug "iOS Device Debug" "$OUTPUT"
echo "iOS Xcode project: ${OUTPUT%.*}.xcodeproj"