From 0c5a915b70a60dc8804e4dca73854fe085235906 Mon Sep 17 00:00:00 2001 From: o98k-ok Date: Sun, 29 Sep 2024 15:00:32 +0800 Subject: [PATCH] =?UTF-8?q?[feature]:=20add=20cross=20compile=20?= =?UTF-8?q?=E2=9C=A8=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index bd210b7..25be8f9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ all: build build: mkdir -p dist go build -o dist/bluetooth main.go + CCO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o dist/bluetooth_arm main.go + CCO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o dist/bluetooth_amd main.go + makefat ./dist/bluetooth ./dist/bluetooth_* + rm -rf ./dist/bluetooth_* cp -r icons dist/icons cp blueutil dist/blueutil cp grid.sh dist/grid.sh