diff --git a/Makefile b/Makefile index d3bf163..24c471f 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,11 @@ windows: go mod tidy CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ble.exe . +.PHONY: macos +macos: + go mod tidy + CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build . + .PHONY: release release: arm ssh pi@192.168.0.21 "sudo systemctl stop ble.service" diff --git a/readme.md b/readme.md index e7388ae..589731c 100644 --- a/readme.md +++ b/readme.md @@ -21,6 +21,7 @@ > arch - gatt supports both Linux and OS X. > 不支持windows,不支持windows,不支持windows! + > 交叉编译为macos,也不支持!!! ### 意外收获 - 在低性能硬件上的程序优化