File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ LDFLAGS=(
1515 -X main.BuildDate=" $( date -u ' +%Y-%m-%dT%I:%M:%S%p' ) "
1616)
1717
18+ VERSION=$( go run cmd/scw/main.go -o json version | jq -r .version)
19+
1820export CGO_ENABLED=0
19- GOOS=linux GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-linux-x86_64" cmd/scw/main.go
20- GOOS=darwin GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-darwin-x86_64" cmd/scw/main.go
21- GOOS=windows GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-windows-x86_64" cmd/scw/main.go
21+ GOOS=linux GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-$VERSION - linux-x86_64" cmd/scw/main.go
22+ GOOS=darwin GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-$VERSION - darwin-x86_64" cmd/scw/main.go
23+ GOOS=windows GOARCH=amd64 go build -ldflags " ${LDFLAGS[*]} " -o " $BIN_DIR /scw-$VERSION - windows-x86_64" cmd/scw/main.go
You can’t perform that action at this time.
0 commit comments