mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
88f417d328
* fix(ci): pin iOS Fastlane toolchain * fix(ci): enforce locked iOS Fastlane path * fix(ci): route iOS docs through bundle * fix(ci): pin all documented iOS Fastlane commands * fix(ci): make iOS bundle selection canonical * fix(ci): enforce the locked iOS Fastlane path * fix(ci): pin Bundler in iOS wrapper * fix(ci): require the iOS Fastlane Gemfile * fix(docs): pin direct iOS Fastlane bundle
26 lines
894 B
Bash
26 lines
894 B
Bash
#!/usr/bin/env bash
|
|
|
|
run_ios_fastlane() {
|
|
local gemfile=""
|
|
gemfile="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)/apps/ios/Gemfile"
|
|
|
|
local setup_hint=""
|
|
setup_hint="Install Ruby 3.4.10, then run: cd apps/ios && gem install bundler -v 2.6.9 && bundle _2.6.9_ install"
|
|
if [[ ! -f "$gemfile" ]]; then
|
|
echo "The repository iOS Gemfile is missing at ${gemfile}. Restore it from the repository checkout." >&2
|
|
echo "$setup_hint" >&2
|
|
return 1
|
|
fi
|
|
if ! command -v bundle >/dev/null 2>&1; then
|
|
echo "bundle not found for the iOS Fastlane bundle at ${gemfile}." >&2
|
|
echo "$setup_hint" >&2
|
|
return 127
|
|
fi
|
|
if ! BUNDLE_GEMFILE="$gemfile" bundle _2.6.9_ check >/dev/null 2>&1; then
|
|
echo "The iOS Fastlane bundle is not installed for ${gemfile}." >&2
|
|
echo "$setup_hint" >&2
|
|
return 1
|
|
fi
|
|
BUNDLE_GEMFILE="$gemfile" bundle _2.6.9_ exec fastlane "$@"
|
|
}
|