add version control

master
veypi 2 years ago
parent b4f3b67535
commit 57f393af13

@ -0,0 +1,31 @@
major=$(strip $(shell awk -F ':' '/major/ {print $$2;}' cfg.yml))
minor=$(strip $(shell awk -F ':' '/minor/ {print $$2;}' cfg.yml))
patch=$(strip $(shell awk -F ':' '/patch/ {print $$2;}' cfg.yml))
version=v$(major).$(minor).$(patch)
vinfo=$(strip $(shell awk -F '$(version)' '/$(version)/ {print $$2;}' vuf.md))
version:
@echo $(version) $(vinfo)
addtag:
ifeq ($(vinfo),)
@echo please add version info in vuf.md
else
@git tag -m '$(vinfo)' $(version)
@git push origin $(version)
endif
dropTag:
@git tag -d $(version)
@git push origin :refs/tags/$(version)
run:
go run *.go -d
.PHONY:build
build:
@GOOS=linux GOARCH=amd64 go build -o ./build/OneAuth
syncDB:
@scp -P 19529 oa.db root@alco.host:/root/

@ -0,0 +1,3 @@
major: 1
minor: 0
patch: 0

@ -0,0 +1,6 @@
# updates
- v2.0.0 rust backend and new frontend with one icon
- v1.0.0 go backend and vue frontend completed
Loading…
Cancel
Save