Update rust_to_flutter.sh

This commit is contained in:
Flux 2025-01-21 17:08:03 +02:00 committed by GitHub
parent 61929a5405
commit 3b49291886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,7 +114,7 @@ if [ "$INCLUDE_IOS_TARGETS" = true ]; then
mkdir -p "$IOS_DEST_DIR"
for target in "${IOS_TARGETS[@]}"; do
RELEASE_DIR="target/$target/release"
LIB_FILE=$(find "$RELEASE_DIR" -maxdepth 1 -name "lib*.a" | head -n 1)
LIB_FILE=$(find "$RELEASE_DIR" -maxdepth 1 -name "lib*.dylib" | head -n 1)
if [ -n "$LIB_FILE" ]; then
cp "$LIB_FILE" "$IOS_DEST_DIR/"
echo "Copied $target library to $IOS_DEST_DIR"