Skip to content

Commit

Permalink
build: add version ldflag to build cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-rockx committed Jun 26, 2023
1 parent 77fd0c0 commit 154cd10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ build_verify:
go build -o $(GOBIN)/verify $(GOCMD)/verify/main.go

release_darwin_arm64:
GOOS=darwin GOARCH=arm64 go build -o $(GOBIN)/darwin_arm64/rockx-dkg-messenger $(GOCMD)/messenger/main.go
GOOS=darwin GOARCH=arm64 go build -o $(GOBIN)/darwin_arm64/rockx-dkg-node $(GOCMD)/node/main.go $(GOCMD)/node/app_params.go
GOOS=darwin GOARCH=arm64 go build -o $(GOBIN)/darwin_arm64/rockx-dkg-cli $(GOCMD)/cli/main.go
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/darwin_arm64/rockx-dkg-messenger $(GOCMD)/messenger/main.go
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/darwin_arm64/rockx-dkg-node $(GOCMD)/node/main.go $(GOCMD)/node/app_params.go
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/darwin_arm64/rockx-dkg-cli $(GOCMD)/cli/main.go

mkdir -p $(GOBASE)/release/$(VERSION)

Expand All @@ -29,9 +29,9 @@ release_darwin_arm64:
cd $(GOBASE)

release_linux_amd64:
GOOS=linux GOARCH=amd64 go build -o $(GOBIN)/linux_amd64/rockx-dkg-messenger $(GOCMD)/messenger/main.go
GOOS=linux GOARCH=amd64 go build -o $(GOBIN)/linux_amd64/rockx-dkg-node $(GOCMD)/node/main.go $(GOCMD)/node/app_params.go
GOOS=linux GOARCH=amd64 go build -o $(GOBIN)/linux_amd64/rockx-dkg-cli $(GOCMD)/cli/main.go
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/linux_amd64/rockx-dkg-messenger $(GOCMD)/messenger/main.go
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/linux_amd64/rockx-dkg-node $(GOCMD)/node/main.go $(GOCMD)/node/app_params.go
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION) -s -w" -o $(GOBIN)/linux_amd64/rockx-dkg-cli $(GOCMD)/cli/main.go

mkdir -p $(GOBASE)/release/$(VERSION)

Expand Down

0 comments on commit 154cd10

Please sign in to comment.