diff --git a/Makefile b/Makefile index 5f7c918..fb9547b 100644 --- a/Makefile +++ b/Makefile @@ -10,4 +10,9 @@ build: build-win: go build -ldflags="-w -s" -o $(GOBIN)/toolset.exe ./ +build-all: + GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o ./build/toolset-linux ./ + GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-w -s" -o ./build/toolset-win.exe ./ + go build -ldflags="-w -s" -o ./build/toolset-mac ./ + # toolset make:protoc -go_out=plugins=grpc:@root/generate/proto -debug=true \ No newline at end of file diff --git a/README.md b/README.md index 762dda2..d614327 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,13 @@ # toolset 一个go项目工具集合 + +1. 有 go 环境安装 ````shell go install github.com/go-home-admin/toolset ```` +2. 直接下载二进制文件, 放到任意 path 包含的路径下 + + ![image](https://github.com/go-home-admin/toolset/blob/main/show.gif)