diff --git a/Makefile b/Makefile index 3af40909..8276288e 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,11 @@ RSRC_BIN=github.com/akavel/rsrc # If upx is available, use it to compress the binaries. UPXPATH=$(shell which upx) +# Skip upx in Mac ARM environments: https://github.com/upx/upx/issues/446 +ifeq ($(shell uname -ps),Darwin arm) + UPXPATH= +endif + # Travis CI passes the version in. Local builds get it from the current git tag. ifeq ($(VERSION),) include .metadata.make