From d5ce2006be99e44699bb8ea55380bc372da6c23d Mon Sep 17 00:00:00 2001 From: tei Date: Mon, 21 Sep 2026 18:52:20 +0900 Subject: [PATCH] fix: validate iOS release slice without pipefail false negative --- tools/particle_release_pipeline/release.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/particle_release_pipeline/release.sh b/tools/particle_release_pipeline/release.sh index b461d5f8d..f70963a69 100755 --- a/tools/particle_release_pipeline/release.sh +++ b/tools/particle_release_pipeline/release.sh @@ -102,8 +102,10 @@ build_release() { (cd "$ROOT" && bazel build --//:renderer=metal //platform/ios:MapLibre.dynamic) IOS_SOURCE="$ROOT/bazel-out/darwin_x86_64-fastbuild/bin/platform/ios/$IOS_ZIP_NAME" [[ -f "$IOS_SOURCE" ]] || die "iOS XCFramework zip missing" - unzip -Z1 "$IOS_SOURCE" | grep -Fq "/ios-arm64/" || die "iOS XCFramework missing ios-arm64 device slice" - if unzip -Z1 "$IOS_SOURCE" | grep -Eiq "simulator|ios-arm64_x86_64"; then + local ios_listing + ios_listing="$(unzip -Z1 "$IOS_SOURCE")" + grep -Fq "/ios-arm64/" <<<"$ios_listing" || die "iOS XCFramework missing ios-arm64 device slice" + if grep -Eiq "simulator|ios-arm64_x86_64" <<<"$ios_listing"; then die "iOS XCFramework unexpectedly contains simulator slice" fi cp "$IOS_SOURCE" "$ARTIFACT_DIR/$IOS_ZIP_NAME"