编译macos也不支持

This commit is contained in:
suguo.yao 2021-12-21 11:37:50 +08:00
parent 07344e5bf2
commit c08a167ccc
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,11 @@ windows:
go mod tidy go mod tidy
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ble.exe . 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 .PHONY: release
release: arm release: arm
ssh pi@192.168.0.21 "sudo systemctl stop ble.service" ssh pi@192.168.0.21 "sudo systemctl stop ble.service"

View File

@ -21,6 +21,7 @@
> arch > arch
- gatt supports both Linux and OS X. - gatt supports both Linux and OS X.
> 不支持windows不支持windows不支持windows > 不支持windows不支持windows不支持windows
> 交叉编译为macos也不支持!!!
### 意外收获 ### 意外收获
- 在低性能硬件上的程序优化 - 在低性能硬件上的程序优化