diff --git a/Makefile b/Makefile index 24ef00e..28d1e56 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,11 @@ build: go build -o bin/main main.go go build -v \ - -ldflags="-X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Version=9.9.9' \ - -X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Prerelease=alpha' \ - -X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Build=local' \ - -X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.BuiltBy=$(shell git config --global --get github.user)' \ - -X '$(shell git remote get-url --push origin | sed 's/:/\//g' | sed 's/.git//g')/version.Date=$(shell date)'" + -ldflags="-X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Version=0.1.2' \ + -X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Prerelease=alpha' \ + -X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Build=local' \ + -X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.BuiltBy=$(shell git config --global --get github.user)' \ + -X '$(shell git remote get-url --push origin | sed 's/https\?:\/\///' | sed 's/\.git//g')/version.Date=$(shell date)'" rm -rf bin/ update: