Skip to content

Commit 3b71f67

Browse files
committed
ci: update generate scripts
1 parent d7c29e5 commit 3b71f67

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

scripts/generate-linux.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@ ${PYBIN}/python --version
1010
${PYBIN}/pip install -r requirements.txt
1111

1212
cd ./bdk-ffi/bdk-ffi/
13-
git checkout v1.2.0
1413

1514
rustup default 1.84.1
1615

1716
echo "Generating native binaries..."
1817
cargo build --profile release-smaller
1918

2019
echo "Generating bdk.py..."
21-
cargo run --bin uniffi-bindgen generate --library ./target/release-smaller/libbdkffi.so --language python --out-dir ../src/bdkpython/ --no-format
20+
cargo run --bin uniffi-bindgen generate --library ./target/release-smaller/libbdkffi.so --language python --out-dir ../../src/bdkpython/ --no-format
2221

2322
echo "Copying linux libbdkffi.so..."
24-
cp ./target/release-smaller/libbdkffi.so ../src/bdkpython/libbdkffi.so
23+
cp ./target/release-smaller/libbdkffi.so ../../src/bdkpython/libbdkffi.so
2524

2625
echo "All done!"

scripts/generate-macos-arm64.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ python3 --version
1010
pip install -r requirements.txt
1111

1212
cd ./bdk-ffi/bdk-ffi/
13-
git checkout v1.2.0
1413

1514
rustup default 1.84.1
1615
rustup target add aarch64-apple-darwin
@@ -19,9 +18,9 @@ echo "Generating native binaries..."
1918
cargo build --profile release-smaller --target aarch64-apple-darwin
2019

2120
echo "Generating bdk.py..."
22-
cargo run --bin uniffi-bindgen generate --library ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib --language python --out-dir ../src/bdkpython/ --no-format
21+
cargo run --bin uniffi-bindgen generate --library ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib --language python --out-dir ../../src/bdkpython/ --no-format
2322

2423
echo "Copying libraries libbdkffi.dylib..."
25-
cp ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib ../src/bdkpython/libbdkffi.dylib
24+
cp ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib ../../src/bdkpython/libbdkffi.dylib
2625

2726
echo "All done!"

scripts/generate-macos-x86_64.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ python3 --version
1010
pip install -r requirements.txt
1111

1212
cd ./bdk-ffi/bdk-ffi/
13-
git checkout v1.2.0
1413

1514
rustup default 1.84.1
1615
rustup target add x86_64-apple-darwin
@@ -19,9 +18,9 @@ echo "Generating native binaries..."
1918
cargo build --profile release-smaller --target x86_64-apple-darwin
2019

2120
echo "Generating bdk.py..."
22-
cargo run --bin uniffi-bindgen generate --library ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib --language python --out-dir ../src/bdkpython/ --no-format
21+
cargo run --bin uniffi-bindgen generate --library ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib --language python --out-dir ../../src/bdkpython/ --no-format
2322

2423
echo "Copying libraries libbdkffi.dylib..."
25-
cp ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib ../src/bdkpython/libbdkffi.dylib
24+
cp ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib ../../src/bdkpython/libbdkffi.dylib
2625

2726
echo "All done!"

scripts/generate-windows.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ python3 --version
1010
pip install -r requirements.txt
1111

1212
cd ./bdk-ffi/bdk-ffi/
13-
git checkout v1.2.0
1413

1514
rustup default 1.84.1
1615
rustup target add x86_64-pc-windows-msvc
@@ -19,9 +18,9 @@ echo "Generating native binaries..."
1918
cargo build --profile release-smaller --target x86_64-pc-windows-msvc
2019

2120
echo "Generating bdk.py..."
22-
cargo run --bin uniffi-bindgen generate --library ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll --language python --out-dir ../src/bdkpython/ --no-format
21+
cargo run --bin uniffi-bindgen generate --library ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll --language python --out-dir ../../src/bdkpython/ --no-format
2322

2423
echo "Copying libraries bdkffi.dll..."
25-
cp ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../src/bdkpython/bdkffi.dll
24+
cp ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../../src/bdkpython/bdkffi.dll
2625

2726
echo "All done!"

0 commit comments

Comments
 (0)