Skip to content

Commit

Permalink
scripts: use release build
Browse files Browse the repository at this point in the history
  • Loading branch information
Breeze0806 committed Aug 17, 2024
1 parent b96c5f2 commit fc87ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cover:
.PHONY: release
release:
@go generate ./...
@cd cmd/datax && go build && cd ../..
@cd cmd/datax && go build -ldflags="-s -w" && cd ../..
@go run tools/datax/release/main.go
.PHONY: doc
doc:
Expand Down
2 changes: 1 addition & 1 deletion release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ go mod download
go mod vendor
go generate ./...
cd cmd\datax
go build
go build -ldflags="-s -w"
cd ../..
go run tools/datax/release/main.go

0 comments on commit fc87ac6

Please sign in to comment.