mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2025-08-23 14:23:05 +00:00
feat: add server version
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,9 +1,11 @@
|
||||
GO ?= go
|
||||
EXECUTABLE := gitea-mcp
|
||||
VERSION ?= $(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')
|
||||
LDFLAGS := -X "main.Version=$(VERSION)"
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
$(GO) build -v -ldflags '-s -w' -o $(EXECUTABLE)
|
||||
$(GO) build -v -ldflags '-s -w $(LDFLAGS)' -o $(EXECUTABLE)
|
||||
|
||||
## air: install air for hot reload
|
||||
.PHONY: air
|
||||
|
Reference in New Issue
Block a user