1
0
mirror of https://github.com/zu1k/nali.git synced 2025-01-22 13:19:02 +08:00

Update Makefile to support M1 (#75)

pre-build binary support darwin-arm64
This commit is contained in:
wisecsj 2021-12-17 15:41:40 +08:00 committed by GitHub
parent 57ecaa8591
commit da557eda4a

View File

@ -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)-$@