chore: Add specific version

This commit is contained in:
Bo-Yi Wu 2021-03-27 14:00:40 +08:00
parent db9dfea6d7
commit 21c5c321c8
1 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ embedmd:
lint:
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/mgechev/revive; \
$(GO) install github.com/mgechev/revive@v1.0.5; \
fi
revive -config .revive.toml ./... || exit 1
@ -88,14 +88,14 @@ $(EXECUTABLE): $(GOFILES)
.PHONY: misspell-check
misspell-check:
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/client9/misspell/cmd/misspell; \
$(GO) install github.com/client9/misspell/cmd/misspell@v0.3.4; \
fi
misspell -error $(GOFILES)
.PHONY: misspell
misspell:
@hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/client9/misspell/cmd/misspell; \
$(GO) install github.com/client9/misspell/cmd/misspell@v0.3.4; \
fi
misspell -w $(GOFILES)
@ -110,14 +110,14 @@ release-dirs:
release-build:
@hash gox > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/mitchellh/gox; \
$(GO) install github.com/mitchellh/gox@v1.0.1; \
fi
gox -os="$(TARGETS)" -arch="$(ARCHS)" -tags="$(TAGS)" -ldflags="$(EXTLDFLAGS)-s -w $(LDFLAGS)" -output="$(DIST)/binaries/$(EXECUTABLE)-$(VERSION)-{{.OS}}-{{.Arch}}"
.PHONY: release-compress
release-compress:
@hash gxz > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install github.com/ulikunitz/xz/cmd/gxz; \
$(GO) install github.com/ulikunitz/xz/cmd/gxz@v0.5.10; \
fi
cd $(DIST)/release/; for file in `find . -type f -name "*"`; do echo "compressing $${file}" && gxz -k -9 $${file}; done;