修复编译问题

This commit is contained in:
dragon
2025-11-21 08:34:06 +08:00
parent 58d0234003
commit 858ea9f9cf

View File

@@ -27,7 +27,7 @@ dist/gitea-pages-$(GOOS)-$(GOARCH).tar.gz: $(shell find . -type f -name "*.go"
rm -f $(GO_DIST_NAME)
gitea-pages: $(shell find . -type f -name "*.go" ) go.mod go.sum
@CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o $@ .
@CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o $@ ./cmd/server
.PHONY: debug
debug: gitea-pages