mirror of
https://github.com/dnote/dnote
synced 2026-03-14 14:35:50 +01:00
Deprecate upgrade (#99)
* Deprecate upgrade * Automate using goreleaser * Fix name and version * Automate
This commit is contained in:
parent
50cfd9923d
commit
b3a12aed85
8 changed files with 40 additions and 22 deletions
14
Makefile
14
Makefile
|
|
@ -1,20 +1,14 @@
|
|||
release:
|
||||
@echo "** Releasing version $(VERSION)..."
|
||||
@echo "** Building..."
|
||||
@$(MAKE) build
|
||||
@echo "** Tagging and pushing..."
|
||||
@git tag -a $(VERSION) -m "$(VERSION)"
|
||||
@git push --tags
|
||||
@goreleaser
|
||||
.PHONY: release
|
||||
|
||||
build: install-gox
|
||||
@$(GOPATH)/bin/gox -ldflags "-X main.apiEndpoint=https://api.dnote.io" -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 openbsd/386 openbsd/amd64 window/386 windows/amd64" -output="dnote-{{.OS}}-{{.Arch}}" ./...
|
||||
.PHONY: build
|
||||
|
||||
install-gox:
|
||||
@echo "** Installing Gox..."
|
||||
@go get github.com/mitchellh/gox
|
||||
.PHONY: install-gox
|
||||
build-snapshot:
|
||||
@goreleaser --snapshot --rm-dist
|
||||
.PHONY: build-snapshot
|
||||
|
||||
clean:
|
||||
@git clean -f
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue