-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes from Ben Fandle exceptions Signed-off-by: FabioPinheiro <[email protected]>
- Loading branch information
1 parent
7c4bc7e
commit 9995f62
Showing
12 changed files
with
151 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file renamed
BIN
+7.86 MB
.../darwin-aarch64/libuniffi_anoncreds.dylib → ...aarch64/libuniffi_anoncreds_wrapper.dylib
Binary file not shown.
Binary file renamed
BIN
+9.11 MB
...E/darwin-x86-64/libuniffi_anoncreds.dylib → ...-x86-64/libuniffi_anoncreds_wrapper.dylib
Binary file not shown.
Binary file renamed
BIN
+14.6 MB
...TIVE/linux-aarch64/libuniffi_anoncreds.so → ...ux-aarch64/libuniffi_anoncreds_wrapper.so
Binary file not shown.
Binary file renamed
BIN
+15.6 MB
...ATIVE/linux-x86-64/libuniffi_anoncreds.so → ...nux-x86-64/libuniffi_anoncreds_wrapper.so
Binary file not shown.
33 changes: 19 additions & 14 deletions
33
pollux/lib/anoncreds/native-lib/helper_script_to_update.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
# https://github.com/input-output-hk/anoncreds-rs/releases/download/0.4.0/library-darwin-aarch64-0ce097bbc9afa8a17a491248d75dcdf03f133dc4.tar.gz | ||
RELEASES=https://github.com/input-output-hk/anoncreds-rs/releases/download/ | ||
VERSION=expose_presentation_methods_in_uniffi | ||
SHA="16a7178ca979f7643788f6ebf8189131ab922a53" | ||
VERSION="0.4.0" | ||
SHA="0ce097bbc9afa8a17a491248d75dcdf03f133dc4" | ||
|
||
mkdir NATIVE_new | ||
mkdir NATIVE_new/darwin-aarch64 | ||
mkdir NATIVE_new/darwin-x86-64 | ||
mkdir NATIVE_new/linux-aarch64 | ||
mkdir NATIVE_new/linux-x86-64 | ||
rm -rf NATIVE/darwin-aarch64 | ||
rm -rf NATIVE/darwin-x86-64 | ||
rm -rf NATIVE/linux-aarch64 | ||
rm -rf NATIVE/linux-x86-64 | ||
|
||
wget -c $RELEASES/$VERSION/library-darwin-aarch64-$SHA.tar.gz -O - | tar -xz -C NATIVE_new/darwin-aarch64 | ||
wget -c $RELEASES/$VERSION/library-darwin-x86_64-$SHA.tar.gz -O - | tar -xz -C NATIVE_new/darwin-x86-64 | ||
wget -c $RELEASES/$VERSION/library-linux-aarch64-$SHA.tar.gz -O - | tar -xz -C NATIVE_new/linux-aarch64 | ||
wget -c $RELEASES/$VERSION/library-linux-x86_64-$SHA.tar.gz -O - | tar -xz -C NATIVE_new/linux-x86-64 | ||
mkdir NATIVE/darwin-aarch64 | ||
mkdir NATIVE/darwin-x86-64 | ||
mkdir NATIVE/linux-aarch64 | ||
mkdir NATIVE/linux-x86-64 | ||
|
||
rename 'libanoncreds_uniffi.so' 'libuniffi_anoncreds.so' NATIVE_new/**/*.so | ||
rename 'libanoncreds_uniffi.dylib' 'libuniffi_anoncreds.dylib' NATIVE_new/**/*.dylib | ||
wget -c $RELEASES/$VERSION/library-darwin-aarch64-$SHA.tar.gz -O - | tar -xz -C NATIVE/darwin-aarch64 | ||
wget -c $RELEASES/$VERSION/library-darwin-x86_64-$SHA.tar.gz -O - | tar -xz -C NATIVE/darwin-x86-64 | ||
wget -c $RELEASES/$VERSION/library-linux-aarch64-$SHA.tar.gz -O - | tar -xz -C NATIVE/linux-aarch64 | ||
wget -c $RELEASES/$VERSION/library-linux-x86_64-$SHA.tar.gz -O - | tar -xz -C NATIVE/linux-x86-64 | ||
|
||
rename 'libanoncreds_uniffi.so' 'libuniffi_anoncreds_wrapper.so' NATIVE/**/*.so | ||
rename 'libanoncreds_uniffi.dylib' 'libuniffi_anoncreds_wrapper.dylib' NATIVE/**/*.dylib | ||
|
||
|
||
## TODO missing anoncreds-jvm-1.0-SNAPSHOT.jar | ||
## run https://github.com/input-output-hk/anoncreds-rs/blob/main/uniffi/build-release-linux.sh | ||
## copy jar from uniffi/output-frameworks/anoncreds-jvm/build/libs/anoncreds-jvm-1.0-SNAPSHOT.jar | ||
## copy jar from uniffi/output-frameworks/anoncreds-jvm/build/libs/anoncreds-jvm-1.0-SNAPSHOT.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.