@@ -4016,12 +4016,13 @@ jobs:
40164016 }
40174017
40184018 # Android (.aar) -> rename to bqlog.aar
4019- mapfile -t android_aar < <(find "$BASE" -type f -path "*/android_libs_${VERSION}/dynamic_lib/*bqlog-release.aar" | sort)
4019+ mapfile -t android_aar < <(find "$BASE" -type f -path "*/android_libs_${VERSION}/*/ dynamic_lib/*bqlog-release.aar" | sort)
40204020 if (( ${#android_aar[@]} )); then
40214021 echo "Copy: ${android_aar[0]} -> $ANDROID_DIR/bqlog.aar"
40224022 cp -f "${android_aar[0]}" "$ANDROID_DIR/bqlog.aar"
40234023 else
40244024 echo "WARN: Android AAR not found for version ${VERSION}"
4025+ exit 1
40254026 fi
40264027
40274028 # Windows x86_64 (BqLog.dll + optional BqLog.pdb + optional BqLog.lib)
@@ -4038,11 +4039,12 @@ jobs:
40384039 fi
40394040 else
40404041 echo "WARN: Windows x86_64 DLL not found for version ${VERSION}"
4042+ exit 1
40414043 fi
40424044
40434045 # Linux x86_64 (libBqLog.so) - use exact versioned real .so (.so.${VERSION}) and copy as libBqLog.so
40444046 LINUX_PKG_BASE="$BASE/linux_x86_64_libs_${VERSION}"
4045- LINUX_INNER_DIR="$LINUX_PKG_BASE/dynamic_lib/lib/RelWithDebInfo"
4047+ LINUX_INNER_DIR="$LINUX_PKG_BASE/*/ dynamic_lib/lib/RelWithDebInfo"
40464048 if [[ ! -d "$LINUX_INNER_DIR" ]]; then
40474049 echo "ERROR: Expected directory not found: $LINUX_INNER_DIR" >&2
40484050 exit 1
@@ -4058,16 +4060,18 @@ jobs:
40584060 cp -Lf "$REAL_SO" "$LINUX_X64_DIR/libBqLog.so"
40594061
40604062 # iOS (BqLog.xcframework)
4061- mapfile -t ios_fw < <(find "$BASE" -type d -path "*/ios_libs_${VERSION}/static_lib/lib/RelWithDebInfo/BqLog.xcframework" | sort)
4063+ mapfile -t ios_fw < <(find "$BASE" -type d -path "*/ios_libs_${VERSION}/*/ static_lib/lib/RelWithDebInfo/BqLog.xcframework" | sort)
40624064 if (( ${#ios_fw[@]} )); then
40634065 copy_one "${ios_fw[0]}" "$IOS_DIR"
40644066 else
40654067 echo "WARN: iOS framework not found for version ${VERSION}"
4068+ exit 1
40664069 fi
40674070
40684071 # macOS universal (libBqLog.dylib) - use exact versioned real .dylib (BqLog.${VERSION}.dylib) and copy as libBqLog.dylib
40694072 MACOS_PKG_BASE="$BASE/macos_universal_binary_libs_${VERSION}"
4070- MACOS_INNER_DIR="$MACOS_PKG_BASE/dynamic_lib/lib/RelWithDebInfo"
4073+ MACOS_INNER_DIR="$MACOS_PKG_BASE/*/dynamic_lib/lib/RelWithDebInfo"
4074+ MACOS_INNER_DIR="$MACOS_PKG_BASE/*/dynamic_lib/lib/RelWithDebInfo"
40714075 if [[ ! -d "$MACOS_INNER_DIR" ]]; then
40724076 echo "ERROR: Expected directory not found: $MACOS_INNER_DIR" >&2
40734077 exit 1
0 commit comments