Skip to content

Commit

Permalink
Build go-sdk (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenlu authored Feb 29, 2024
1 parent 48dba9d commit d9e17c7
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 86 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ build-darwin-arm64:

code-gen-go:
mkdir -p lightspark-crypto-go/internal
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go
cargo install uniffi-bindgen-go --git https://github.com/NordSecurity/uniffi-bindgen-go --tag v0.1.5+v0.23.0
uniffi-bindgen-go src/lightspark_crypto.udl --out-dir lightspark-crypto-go
mv lightspark-crypto-go/uniffi/lightspark_crypto/lightspark_crypto.go lightspark-crypto-go/internal
mv lightspark-crypto-go/uniffi/lightspark_crypto/* lightspark-crypto-go/internal
sed -i '' 's/package lightspark_crypto/package internal/g' lightspark-crypto-go/internal/lightspark_crypto.go
rm -rf lightspark-crypto-go/uniffi

Expand Down
Loading

0 comments on commit d9e17c7

Please sign in to comment.