This commit is contained in:
谢小军
2020-02-21 21:37:58 +08:00
parent 53b2ba93fa
commit 79eba1ca61
2 changed files with 14 additions and 2 deletions

View File

@@ -1,8 +1,20 @@
all:
make windows
make mac
make linux
make clear
windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
tar czvf gormt_windows.zip gormt.exe config.yml
mac:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
tar czvf gormt_mac.zip gormt config.yml
linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
tar czvf gormt_linux.zip gormt config.yml
clear:
rm gormt
rm gormt.exe
rm -rf model/*
rm -rf err/