From da557eda4afc4a71eb6a037d165a511cef169388 Mon Sep 17 00:00:00 2001 From: wisecsj Date: Fri, 17 Dec 2021 15:41:40 +0800 Subject: [PATCH] Update Makefile to support M1 (#75) pre-build binary support darwin-arm64 --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 0d0085cf..2ba451fd 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/zu1k/nali/inte -w -s' PLATFORM_LIST = \ + darwin-arm64 \ darwin-amd64 \ linux-386 \ linux-amd64 \ @@ -32,6 +33,9 @@ all: linux-amd64 darwin-amd64 windows-amd64 # Most used docker: $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ +darwin-arm64: + GOARCH=arm64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@ + darwin-amd64: GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@