From 1a0918ca334f7d777085f62bbb580b31afff4c38 Mon Sep 17 00:00:00 2001 From: Flux Date: Tue, 21 Jan 2025 17:14:06 +0200 Subject: [PATCH] Update rust_to_flutter.sh x86_64-apple-ios conditional --- rust_to_flutter.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rust_to_flutter.sh b/rust_to_flutter.sh index def766d..e9ba348 100644 --- a/rust_to_flutter.sh +++ b/rust_to_flutter.sh @@ -5,7 +5,7 @@ set -e # Check for required arguments if [ "$#" -lt 2 ]; then echo "Usage: $0 [-x] " - echo " -x: Include x86 and x86_64 targets (optional)" + echo " -x: Include x86 and x86_64 targets for Android and iOS (optional)" exit 1 fi @@ -42,7 +42,11 @@ if [ "$INCLUDE_X86" = true ]; then ANDROID_TARGETS+=("x86_64-linux-android" "i686-linux-android") fi -IOS_TARGETS=("aarch64-apple-ios" "x86_64-apple-ios") +# Supported targets for iOS +IOS_TARGETS=("aarch64-apple-ios") +if [ "$INCLUDE_X86" = true ]; then + IOS_TARGETS+=("x86_64-apple-ios") +fi # Check if on macOS for iOS targets if [[ "${OSTYPE:-}" == "darwin"* ]]; then