-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from LtbLightning/v0.29.3-minor-fixes
V0.29.3 minor fixes
- Loading branch information
Showing
16 changed files
with
217 additions
and
80 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
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TAG_VERSION=0.29.3 | ||
REPOSITORY_URL=https://github.com/LtbLightning/test-pub/releases/download/ |
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Setup | ||
BUILD_DIR=bdk.0.29.3 | ||
mkdir -p $BUILD_DIR | ||
cd $BUILD_DIR | ||
|
||
# Create the jniLibs build directory | ||
JNI_DIR=jniLibs | ||
mkdir -p $JNI_DIR | ||
|
||
# Set up cargo-ndk | ||
cargo install cargo-ndk | ||
rustup target add \ | ||
aarch64-linux-android \ | ||
armv7-linux-androideabi \ | ||
x86_64-linux-android \ | ||
i686-linux-android | ||
|
||
# Build the android libraries in the jniLibs directory | ||
cargo ndk -o $JNI_DIR \ | ||
--manifest-path ../Cargo.toml \ | ||
-t armeabi-v7a \ | ||
-t arm64-v8a \ | ||
-t x86 \ | ||
-t x86_64 \ | ||
build --release | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
for TARGET in \ | ||
bdk.0.29.3 unittest.bdk.0.29.3 | ||
do | ||
zip -r $TARGET.zip $TARGET | ||
done | ||
rm unittest.bdk.0.29.3 | ||
|
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,19 +1,21 @@ | ||
if [ -d "../android/src/main/jniLibs" ]; then rm -r ../android/src/main/jniLibs | ||
fi | ||
if [ -d "../frameworks/rust_bdk_ffi.xcframework" ]; then rm -r ../frameworks/rust_bdk_ffi.xcframework | ||
if [ -d "../ios/rust_bdk_ffi.xcframework" ]; then rm -r ../ios/rust_bdk_ffi.xcframework | ||
fi | ||
if [ -d "../macos/rust_bdk_ffi.xcframework" ]; then rm -r ../macos/rust_bdk_ffi.xcframework | ||
fi | ||
|
||
mkdir -p ../android/src/main/jniLibs/arm64-v8a | ||
mkdir -p ../android/src/main/jniLibs/armeabi-v7a | ||
mkdir -p ../android/src/main/jniLibs/x86 | ||
mkdir -p ../android/src/main/jniLibs/x86_86 | ||
|
||
cp target/aarch64-linux-android/release/librust_bdk_ffi.so ../android/src/main/jniLibs/arm64-v8a | ||
cp target/armv7-linux-androideabi/release/librust_bdk_ffi.so ../android/src/main/jniLibs/armeabi-v7a | ||
cp target/i686-linux-android/release/librust_bdk_ffi.so ../android/src/main/jniLibs/x86 | ||
cp -r platform-build/rust_bdk_ffi.xcframework ../frameworks | ||
cd platform-build | ||
zip -r ../bdk_bin_0.29.3.zip bdk_bin_0.29.3 | ||
cd ../ | ||
rm -rf platform-build | ||
cp target/x86_64-linux-android/release/librust_bdk_ffi.so ../android/src/main/jniLibs/x86_86 | ||
cp -r bdk.0.29.3/rust_bdk_ffi.xcframework ../macos/ | ||
cp -r bdk.0.29.3/rust_bdk_ffi.xcframework ../macos/ | ||
|
||
|
||
|
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.