Skip to content

Commit

Permalink
fix: universal library zip
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-frade-iohk committed Oct 10, 2023
1 parent 09a25ae commit 51389b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
]
)
4 changes: 2 additions & 2 deletions uniffi/build-release-apple-universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51389b8

Please sign in to comment.