From c08a167cccf0f5cba082472e6bcb363536d65947 Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Tue, 21 Dec 2021 11:37:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91macos=E4=B9=9F=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 +++++ readme.md | 1 + 2 files changed, 6 insertions(+) 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,也不支持!!! ### 意外收获 - 在低性能硬件上的程序优化