diff --git a/scripts/uniffi_bindgen_generate.sh b/scripts/uniffi_bindgen_generate.sh index 7245cd988..518d804a6 100755 --- a/scripts/uniffi_bindgen_generate.sh +++ b/scripts/uniffi_bindgen_generate.sh @@ -1,2 +1,3 @@ #!/bin/bash source ./scripts/uniffi_bindgen_generate_kotlin.sh +source ./scripts/uniffi_bindgen_generate_python.sh diff --git a/scripts/uniffi_bindgen_generate_python.sh b/scripts/uniffi_bindgen_generate_python.sh new file mode 100755 index 000000000..8dd937fba --- /dev/null +++ b/scripts/uniffi_bindgen_generate_python.sh @@ -0,0 +1,7 @@ +#!/bin/bash +BINDINGS_DIR="./bindings/python" +UNIFFI_BINDGEN_BIN="cargo +nightly run --features=uniffi/cli --bin uniffi-bindgen" + +cargo +nightly build --release || exit 1 +$UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language python -o "$BINDINGS_DIR" || exit 1 +cp ./target/release/libldk_node.dylib "$BINDINGS_DIR"/libldk_node.dylib || exit 1