From ce40a581d49e99079bd80ea08e38594ccb53082a Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Wed, 27 Nov 2024 14:02:44 +0100 Subject: [PATCH] ffi: fix python release scripts Signed-off-by: Yuki Kishimoto --- bindings/nostr-sdk-ffi/python/scripts/generate-linux-aarch64.sh | 2 +- bindings/nostr-sdk-ffi/python/scripts/generate-linux-x86_64.sh | 2 +- bindings/nostr-sdk-ffi/python/scripts/generate-macos-arm64.sh | 2 +- bindings/nostr-sdk-ffi/python/scripts/generate-macos-x86_64.sh | 2 +- bindings/nostr-sdk-ffi/python/scripts/generate-windows.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/nostr-sdk-ffi/python/scripts/generate-linux-aarch64.sh b/bindings/nostr-sdk-ffi/python/scripts/generate-linux-aarch64.sh index b974cf99b..3467f05cb 100755 --- a/bindings/nostr-sdk-ffi/python/scripts/generate-linux-aarch64.sh +++ b/bindings/nostr-sdk-ffi/python/scripts/generate-linux-aarch64.sh @@ -10,7 +10,7 @@ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc cargo build echo "Generating nostr_sdk.py..." cd ../ -cargo run -p uniffi-bindgen generate --library ../../target/aarch64-unknown-linux-gnu/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/ +cargo run --bin uniffi-bindgen generate --library ../../target/aarch64-unknown-linux-gnu/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/ echo "Copying linux libnostr_sdk_ffi.so..." cp ../../target/aarch64-unknown-linux-gnu/release/libnostr_sdk_ffi.so python/src/nostr-sdk/ diff --git a/bindings/nostr-sdk-ffi/python/scripts/generate-linux-x86_64.sh b/bindings/nostr-sdk-ffi/python/scripts/generate-linux-x86_64.sh index a3e2be8a3..03befa6bd 100644 --- a/bindings/nostr-sdk-ffi/python/scripts/generate-linux-x86_64.sh +++ b/bindings/nostr-sdk-ffi/python/scripts/generate-linux-x86_64.sh @@ -10,7 +10,7 @@ cargo build --lib --release --target x86_64-unknown-linux-gnu echo "Generating nostr_sdk.py..." cd ../ -cargo run -p uniffi-bindgen generate --library ../../target/x86_64-unknown-linux-gnu/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/ +cargo run --bin uniffi-bindgen generate --library ../../target/x86_64-unknown-linux-gnu/release/libnostr_sdk_ffi.so --language python --no-format -o python/src/nostr-sdk/ echo "Copying linux libnostr_sdk_ffi.so..." cp ../../target/x86_64-unknown-linux-gnu/release/libnostr_sdk_ffi.so python/src/nostr-sdk/ diff --git a/bindings/nostr-sdk-ffi/python/scripts/generate-macos-arm64.sh b/bindings/nostr-sdk-ffi/python/scripts/generate-macos-arm64.sh index a5b32b5dd..47269edc2 100644 --- a/bindings/nostr-sdk-ffi/python/scripts/generate-macos-arm64.sh +++ b/bindings/nostr-sdk-ffi/python/scripts/generate-macos-arm64.sh @@ -10,7 +10,7 @@ cargo build --lib --release --target aarch64-apple-darwin echo "Generating nostr_sdk.py..." cd ../ -cargo run -p uniffi-bindgen generate --library ../../target/aarch64-apple-darwin/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/ +cargo run --bin uniffi-bindgen generate --library ../../target/aarch64-apple-darwin/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/ echo "Copying libraries libnostr_sdk_ffi.dylib..." cp ../../target/aarch64-apple-darwin/release/libnostr_sdk_ffi.dylib python/src/nostr-sdk/ diff --git a/bindings/nostr-sdk-ffi/python/scripts/generate-macos-x86_64.sh b/bindings/nostr-sdk-ffi/python/scripts/generate-macos-x86_64.sh index 89c0201cf..05562c2be 100644 --- a/bindings/nostr-sdk-ffi/python/scripts/generate-macos-x86_64.sh +++ b/bindings/nostr-sdk-ffi/python/scripts/generate-macos-x86_64.sh @@ -10,7 +10,7 @@ cargo build --lib --release --target x86_64-apple-darwin echo "Generating nostr_sdk.py..." cd ../ -cargo run -p uniffi-bindgen generate --library ../../target/x86_64-apple-darwin/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/ +cargo run --bin uniffi-bindgen generate --library ../../target/x86_64-apple-darwin/release/libnostr_sdk_ffi.dylib --language python --no-format -o python/src/nostr-sdk/ echo "Copying libraries libnostr_sdk_ffi.dylib..." cp ../../target/x86_64-apple-darwin/release/libnostr_sdk_ffi.dylib python/src/nostr-sdk/ diff --git a/bindings/nostr-sdk-ffi/python/scripts/generate-windows.sh b/bindings/nostr-sdk-ffi/python/scripts/generate-windows.sh index 0febad9b7..b9c61daf3 100644 --- a/bindings/nostr-sdk-ffi/python/scripts/generate-windows.sh +++ b/bindings/nostr-sdk-ffi/python/scripts/generate-windows.sh @@ -10,7 +10,7 @@ cargo build --lib --release --target x86_64-pc-windows-msvc echo "Generating nostr_sdk.py..." cd ../ -cargo run -p uniffi-bindgen generate --library ../../target/x86_64-pc-windows-msvc/release/nostr_sdk_ffi.dll --language python --no-format -o python/src/nostr-sdk/ +cargo run --bin uniffi-bindgen generate --library ../../target/x86_64-pc-windows-msvc/release/nostr_sdk_ffi.dll --language python --no-format -o python/src/nostr-sdk/ echo "Copying libraries nostr_sdk_ffi.dll..." cp ../../target/x86_64-pc-windows-msvc/release/nostr_sdk_ffi.dll python/src/nostr-sdk/