feat: 添加打包,修复bug
This commit is contained in:
11
Makefile
11
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user