From 263833f295588bf7d9b35a8f9e93bf05ae8a5e76 Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Fri, 27 Sep 2024 15:59:00 -0400 Subject: [PATCH] ffi(nostr): fix `python` command for macOS targets Use `.dylib` instead of `.a` library to generate python foreign-language bindings Signed-off-by: Yuki Kishimoto --- bindings/nostr-ffi/justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/nostr-ffi/justfile b/bindings/nostr-ffi/justfile index f72507304..9818c5f4c 100755 --- a/bindings/nostr-ffi/justfile +++ b/bindings/nostr-ffi/justfile @@ -133,7 +133,7 @@ python: rm -rf bindings-python/dist pip install -r bindings-python/requirements.txt cargo build --release - cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_ffi.a --language python --no-format -o bindings-python/src/nostr/ + cargo run -p uniffi-bindgen generate --library ../../target/release/libnostr_ffi.dylib --language python --no-format -o bindings-python/src/nostr/ cp ../../target/release/libnostr_ffi.dylib bindings-python/src/nostr/ cd bindings-python && python setup.py --verbose bdist_wheel pip install ./bindings-python/dist/nostr_protocol*.whl --force-reinstall