feat: 添加打包,修复bug

This commit is contained in:
chenxiangtong
2026-05-28 20:13:57 +08:00
parent 3927010bb9
commit b5ab610893
9 changed files with 95 additions and 9 deletions

View File

@@ -1,11 +1,8 @@
.PHONY: all backend
.PHONY: all backend manager
all: dist/amt.exe
./dist/amt.exe
dist/amt.exe: $(wildcard *.go) go.mod go.sum
@mkdir -p dist
go build -o dist/amt.exe .
all: $(wildcard *.go) go.mod go.sum
@if not exist dist mkdir dist
go build -o dist/amt.exe -ldflags "-w -s"
backend:
cd backend && uv run main.py