Skip to content

Commit b3e2580

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

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

scripts/generate-linux.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ${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

@@ -20,7 +19,10 @@ cargo build --profile release-smaller
2019
echo "Generating bdk.py..."
2120
cargo run --bin uniffi-bindgen generate --library ./target/release-smaller/libbdkffi.so --language python --out-dir ../src/bdkpython/ --no-format
2221

22+
echo "Copying bdk.py to main project..."
23+
cp ../src/bdkpython/bdk.py ../../src/bdkpython/bdk.py
24+
2325
echo "Copying linux libbdkffi.so..."
24-
cp ./target/release-smaller/libbdkffi.so ../src/bdkpython/libbdkffi.so
26+
cp ./target/release-smaller/libbdkffi.so ../../src/bdkpython/libbdkffi.so
2527

2628
echo "All done!"

scripts/generate-macos-arm64.sh

Lines changed: 4 additions & 2 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
@@ -21,7 +20,10 @@ cargo build --profile release-smaller --target aarch64-apple-darwin
2120
echo "Generating bdk.py..."
2221
cargo run --bin uniffi-bindgen generate --library ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib --language python --out-dir ../src/bdkpython/ --no-format
2322

23+
echo "Copying bdk.py to main project..."
24+
cp ../src/bdkpython/bdk.py ../../src/bdkpython/bdk.py
25+
2426
echo "Copying libraries libbdkffi.dylib..."
25-
cp ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib ../src/bdkpython/libbdkffi.dylib
27+
cp ./target/aarch64-apple-darwin/release-smaller/libbdkffi.dylib ../../src/bdkpython/libbdkffi.dylib
2628

2729
echo "All done!"

scripts/generate-macos-x86_64.sh

Lines changed: 4 additions & 2 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
@@ -21,7 +20,10 @@ cargo build --profile release-smaller --target x86_64-apple-darwin
2120
echo "Generating bdk.py..."
2221
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

23+
echo "Copying bdk.py to main project..."
24+
cp ../src/bdkpython/bdk.py ../../src/bdkpython/bdk.py
25+
2426
echo "Copying libraries libbdkffi.dylib..."
25-
cp ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib ../src/bdkpython/libbdkffi.dylib
27+
cp ./target/x86_64-apple-darwin/release-smaller/libbdkffi.dylib ../../src/bdkpython/libbdkffi.dylib
2628

2729
echo "All done!"

scripts/generate-windows.sh

Lines changed: 4 additions & 2 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
@@ -21,7 +20,10 @@ cargo build --profile release-smaller --target x86_64-pc-windows-msvc
2120
echo "Generating bdk.py..."
2221
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

23+
echo "Copying bdk.py to main project..."
24+
cp ../src/bdkpython/bdk.py ../../src/bdkpython/bdk.py
25+
2426
echo "Copying libraries bdkffi.dll..."
25-
cp ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../src/bdkpython/bdkffi.dll
27+
cp ./target/x86_64-pc-windows-msvc/release-smaller/bdkffi.dll ../../src/bdkpython/bdkffi.dll
2628

2729
echo "All done!"

0 commit comments

Comments
 (0)