From 51389b884f413622f42edecb1dc915b94970490d Mon Sep 17 00:00:00 2001 From: goncalo-frade-iohk Date: Tue, 10 Oct 2023 19:29:56 +0100 Subject: [PATCH] fix: universal library zip --- Package.swift | 4 ++-- uniffi/build-release-apple-universal.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index e8c16d1f..873c65ce 100644 --- a/Package.swift +++ b/Package.swift @@ -32,8 +32,8 @@ let package = Package( // RELEASE .binaryTarget( name: "libanoncreds", - url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.3.0/libanoncreds.xcframework.zip", - checksum: "ca6b65895ceb207ee6d1b1b679fdf0e74185b4b5a44f8a2db9100ccc110fb0a3" + url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.2.0/libanoncreds.xcframework.zip", + checksum: "ef4b56ccb533620d191c9246ebc5eea4a706c2351601325cc66b510a322318a2" ) ] ) diff --git a/uniffi/build-release-apple-universal.sh b/uniffi/build-release-apple-universal.sh index 3652a320..518f72fe 100755 --- a/uniffi/build-release-apple-universal.sh +++ b/uniffi/build-release-apple-universal.sh @@ -62,13 +62,13 @@ dir="./target/universal/libanoncreds.xcframework" # Compress and copy XCFramework target_dir_name="libanoncreds.xcframework" -source_dir="./target/universal/" +source_dir="./target/universal" dest_dir="./output-frameworks/anoncreds-swift" zip_name="libanoncreds.xcframework.zip" echo "Zip xcframework" rm -f "$dest_dir/$zip_name" || true -zip -r "$dest_dir/$zip_name" "$source_dir/$target_dir_name" +(cd $source_dir && zip -r "../../$dest_dir/$zip_name" $target_dir_name) echo "Copy .swift binders" rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift" || true