Skip to content

Commit

Permalink
chore: Add static archives to build script on MacOS and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
clundin25 committed May 28, 2024
1 parent f21be58 commit ed3ac5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/scripts/darwin_amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ mv darwin ./../../../build/bin/darwin_amd64/ecp
cd ./../../..

# Build the signer library
go build -buildmode=c-shared -buildmode=c-shared -ldflags="-X=main.Version=$CURRENT_TAG" -o build/bin/darwin_amd64/libecp.dylib cshared/main.go
go build -buildmode=c-shared -ldflags="-X=main.Version=$CURRENT_TAG" -o build/bin/darwin_amd64/libecp.dylib cshared/main.go
go build -buildmode=c-archive -ldflags="-X=main.Version=$CURRENT_TAG" -o build/bin/darwin_amd64/libecp.a cshared/main.go
rm build/bin/darwin_amd64/libecp.h
1 change: 1 addition & 0 deletions build/scripts/linux_amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mkdir -p ./build/bin/linux_amd64

# Build the signer library
go build -buildmode=c-shared -ldflags="-X=main.Version=$CURRENT_TAG" -o build/bin/linux_amd64/libecp.so cshared/main.go
go build -buildmode=c-archive -ldflags="-X=main.Version=$CURRENT_TAG" -o build/bin/linux_amd64/libecp.a cshared/main.go
rm build/bin/linux_amd64/libecp.h

# Build the signer binary
Expand Down

0 comments on commit ed3ac5a

Please sign in to comment.