mirror of
https://github.com/thegeeklab/git-sv.git
synced 2024-11-21 12:00:40 +00:00
build: add release and release-all on makefile
This commit is contained in:
parent
0deb04cc9c
commit
137dca4081
12
Makefile
12
Makefile
@ -43,3 +43,15 @@ run:
|
||||
tidy:
|
||||
@echo $(ECHOFLAGS) "$(OK_COLOR)==> runing 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 New Issue
Block a user