build: add release and release-all on makefile
This commit is contained in:
parent
0deb04cc9c
commit
137dca4081
1 changed files with 13 additions and 1 deletions
14
Makefile
14
Makefile
|
@ -42,4 +42,16 @@ run:
|
|||
## tidy: execute go mod tidy
|
||||
tidy:
|
||||
@echo $(ECHOFLAGS) "$(OK_COLOR)==> runing tidy"
|
||||
@go mod tidy
|
||||
@go mod tidy
|
||||
|
||||
## release: prepare binary for release
|
||||
release:
|
||||
make build
|
||||
@zip -j bin/git-sv_$(VERSION)_$(BUILDOS)_$(BUILDARCH).zip bin/$(BUILDOS)_$(BUILDARCH)/$(BIN)
|
||||
|
||||
## release-all: prepare linux, darwin and windows binary for release
|
||||
release-all:
|
||||
@rm -rf bin
|
||||
BUILDOS=linux make release
|
||||
BUILDOS=darwin make release
|
||||
BUILDOS=windows make release
|
||||
|
|
Loading…
Reference in a new issue