mirror of
https://github.com/zu1k/nali.git
synced 2025-01-23 13:49:02 +08:00
Update Makefile to support M1 (#75)
pre-build binary support darwin-arm64
This commit is contained in:
parent
9f8be105fa
commit
0824abad07
4
Makefile
4
Makefile
@ -7,6 +7,7 @@ GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/zu1k/nali/inte
|
|||||||
-w -s'
|
-w -s'
|
||||||
|
|
||||||
PLATFORM_LIST = \
|
PLATFORM_LIST = \
|
||||||
|
darwin-arm64 \
|
||||||
darwin-amd64 \
|
darwin-amd64 \
|
||||||
linux-386 \
|
linux-386 \
|
||||||
linux-amd64 \
|
linux-amd64 \
|
||||||
@ -32,6 +33,9 @@ all: linux-amd64 darwin-amd64 windows-amd64 # Most used
|
|||||||
docker:
|
docker:
|
||||||
$(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
$(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||||||
|
|
||||||
|
darwin-arm64:
|
||||||
|
GOARCH=arm64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||||||
|
|
||||||
darwin-amd64:
|
darwin-amd64:
|
||||||
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
GOARCH=amd64 GOOS=darwin $(GOBUILD) -o $(BINDIR)/$(NAME)-$@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user