Skip to content

Commit 51389b8

Browse files
fix: universal library zip
1 parent 09a25ae commit 51389b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ let package = Package(
3232
// RELEASE
3333
.binaryTarget(
3434
name: "libanoncreds",
35-
url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.3.0/libanoncreds.xcframework.zip",
36-
checksum: "ca6b65895ceb207ee6d1b1b679fdf0e74185b4b5a44f8a2db9100ccc110fb0a3"
35+
url: "https://github.com/input-output-hk/anoncreds-rs/releases/download/0.2.0/libanoncreds.xcframework.zip",
36+
checksum: "ef4b56ccb533620d191c9246ebc5eea4a706c2351601325cc66b510a322318a2"
3737
)
3838
]
3939
)

uniffi/build-release-apple-universal.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ dir="./target/universal/libanoncreds.xcframework"
6262

6363
# Compress and copy XCFramework
6464
target_dir_name="libanoncreds.xcframework"
65-
source_dir="./target/universal/"
65+
source_dir="./target/universal"
6666
dest_dir="./output-frameworks/anoncreds-swift"
6767
zip_name="libanoncreds.xcframework.zip"
6868

6969
echo "Zip xcframework"
7070
rm -f "$dest_dir/$zip_name" || true
71-
zip -r "$dest_dir/$zip_name" "$source_dir/$target_dir_name"
71+
(cd $source_dir && zip -r "../../$dest_dir/$zip_name" $target_dir_name)
7272

7373
echo "Copy .swift binders"
7474
rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift" || true

0 commit comments

Comments
 (0)