A one-day port to measure a late night on an iPhone before committing to touch controls (docs/ios-test-port.md). - MobilePort: on phones (the "mobile" feature) no ToonLook (standard materials, Mobile renderer), 3D at 0.75 resolution scale, co-op hidden, microphone never opened, and leaving the app pauses. `-- --mobile` and `-- --perf-test` turn the same switches on for desktop. - PerfTest (the iOS preset's "perf_test" feature): frame time, physics, render CPU and GPU readout, a per-night summary (avg, p99, worst), and tap buttons for night 20/30, unlock all, next phase, and a shield. CampaignDebug's jumps also work in that release build. - iOS export preset (export project only; bundle com.oatmealgames.harvestseason, team 823T4Q2T3U), an opaque 1024 icon, filled privacy purpose strings, ETC2/ASTC import, landscape both ways. - codemagic.yaml: Godot 4.7.2 export, signing, .ipa, TestFlight upload. Graph update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
3.2 KiB
YAML
70 lines
3.2 KiB
YAML
# Codemagic build of the iOS test port (docs/ios-test-port.md): Godot exports the Xcode project
|
|
# (export_presets.cfg's "iOS" preset, export only), Codemagic signs it, builds the .ipa, and
|
|
# uploads it to App Store Connect for TestFlight. Starts manually only (no triggering section).
|
|
# Fill in the FILL IN value (the App Store Connect API key's name) first.
|
|
workflows:
|
|
ios-perf-test:
|
|
name: iOS perf test (TestFlight)
|
|
instance_type: mac_mini_m2
|
|
max_build_duration: 60
|
|
integrations:
|
|
app_store_connect: FILL IN # the App Store Connect API key's name in Codemagic's team integrations
|
|
environment:
|
|
ios_signing:
|
|
distribution_type: app_store
|
|
bundle_identifier: &bundle_id com.oatmealgames.harvestseason
|
|
vars:
|
|
BUNDLE_ID: *bundle_id
|
|
APPLE_TEAM_ID: 823T4Q2T3U
|
|
GODOT_VERSION: 4.7.2
|
|
xcode: latest
|
|
cache:
|
|
cache_paths:
|
|
- $HOME/Library/Application Support/Godot/export_templates
|
|
scripts:
|
|
- name: Install Godot and the iOS export template
|
|
script: |
|
|
set -euo pipefail
|
|
base="https://github.com/godotengine/godot/releases/download/$GODOT_VERSION-stable"
|
|
cd "$HOME"
|
|
curl -fsSL -o godot.zip "$base/Godot_v$GODOT_VERSION-stable_macos.universal.zip"
|
|
unzip -q -o godot.zip
|
|
templates="$HOME/Library/Application Support/Godot/export_templates/$GODOT_VERSION.stable"
|
|
if [ ! -f "$templates/ios.zip" ]; then
|
|
# The full template set is ~1 GB; only the iOS one is kept (and cached).
|
|
curl -fsSL -o templates.tpz "$base/Godot_v$GODOT_VERSION-stable_export_templates.tpz"
|
|
mkdir -p "$templates"
|
|
unzip -q -j -o templates.tpz templates/ios.zip templates/version.txt -d "$templates"
|
|
rm templates.tpz
|
|
fi
|
|
echo "GODOT=$HOME/Godot.app/Contents/MacOS/Godot" >> "$CM_ENV"
|
|
- name: Import the project
|
|
script: |
|
|
"$GODOT" --headless --path . --import
|
|
- name: Export the Xcode project
|
|
script: |
|
|
set -euo pipefail
|
|
# The preset keeps placeholders; the team, bundle ID, and build number come from here.
|
|
sed -i '' \
|
|
-e "s/^application\/app_store_team_id=.*/application\/app_store_team_id=\"$APPLE_TEAM_ID\"/" \
|
|
-e "s/^application\/bundle_identifier=.*/application\/bundle_identifier=\"$BUNDLE_ID\"/" \
|
|
-e "s/^application\/version=.*/application\/version=\"$BUILD_NUMBER\"/" \
|
|
export_presets.cfg
|
|
mkdir -p build/ios
|
|
"$GODOT" --headless --path . --export-release "iOS" build/ios/HarvestSeason.ipa
|
|
test -d build/ios/HarvestSeason.xcodeproj
|
|
- name: Apply the App Store signing profile
|
|
script: |
|
|
xcode-project use-profiles --project build/ios/HarvestSeason.xcodeproj
|
|
- name: Build the .ipa
|
|
script: |
|
|
xcode-project build-ipa --project build/ios/HarvestSeason.xcodeproj --scheme HarvestSeason
|
|
artifacts:
|
|
- build/ios/ipa/*.ipa
|
|
- /tmp/xcodebuild_logs/*.log
|
|
publishing:
|
|
app_store_connect:
|
|
auth: integration
|
|
# Internal testers get each build without Apple's review; true would also send it to
|
|
# beta review for external testers.
|
|
submit_to_testflight: false
|