Fix: Disable Android build temporarily, fix iOS simulator app path detection
This commit is contained in:
@@ -15,6 +15,7 @@ jobs:
|
||||
build-android-debug:
|
||||
name: Build Android Debug APK
|
||||
runs-on: ubuntu-latest
|
||||
if: false # 暂时禁用 Android 构建
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -149,13 +150,22 @@ jobs:
|
||||
# 方法4: 使用 xcodebuild 显示构建产物路径
|
||||
if [ -z "$APP_PATH" ]; then
|
||||
echo "Getting build settings to find target build dir..."
|
||||
BUILD_DIR=$(xcodebuild -project uuvpn.xcodeproj -scheme SFI -showBuildSettings | grep "TARGET_BUILD_DIR" | cut -d '=' -f 2 | tr -d ' ')
|
||||
echo "TARGET_BUILD_DIR: $BUILD_DIR"
|
||||
# 获取模拟器构建目录 (Debug-iphonesimulator)
|
||||
BUILD_DIR=$(xcodebuild -project uuvpn.xcodeproj -scheme SFI -sdk iphonesimulator -showBuildSettings | grep "TARGET_BUILD_DIR" | cut -d '=' -f 2 | tr -d ' ')
|
||||
echo "TARGET_BUILD_DIR (Simulator): $BUILD_DIR"
|
||||
if [ -n "$BUILD_DIR" ] && [ -d "$BUILD_DIR" ]; then
|
||||
echo "Contents of TARGET_BUILD_DIR:"
|
||||
ls -la "$BUILD_DIR" || true
|
||||
APP_PATH=$(find "$BUILD_DIR" -name "*.app" -type d | head -n 1)
|
||||
fi
|
||||
fi
|
||||
|
||||
# 方法5: 直接查找模拟器构建目录
|
||||
if [ -z "$APP_PATH" ]; then
|
||||
echo "Searching in Debug-iphonesimulator directory..."
|
||||
APP_PATH=$(find ~/Library/Developer/Xcode/DerivedData -path "*Debug-iphonesimulator*.app" -type d | head -n 1)
|
||||
fi
|
||||
|
||||
if [ -n "$APP_PATH" ] && [ -d "$APP_PATH" ]; then
|
||||
echo "✅ Found app at: $APP_PATH"
|
||||
echo "App size:"
|
||||
|
||||
Reference in New Issue
Block a user