Skip to content

Commit

Permalink
build: Skip UPX on snapshot builds (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Dec 15, 2021
1 parent 9998a67 commit 3f3eae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions make/upx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

.PHONY: upx
upx: UPX_REAL_TARGET := $(addsuffix $(if $(filter $(GOOS),windows),.exe),$(basename $(UPX_TARGET)))
ifneq ($(IS_SNAPSHOT),true)
ifeq ($(GOOS)/$(GOARCH),windows/arm64)
upx: ; $(info $(M) skipping packing $(UPX_REAL_TARGET) - $(GOOS)/$(GOARCH) is not yet supported by upx)
else
Expand All @@ -22,3 +23,4 @@ upx: ## Pack executable using upx
upx: ; $(info $(M) packing $(UPX_REAL_TARGET))
(upx -l $(UPX_REAL_TARGET) &>/dev/null && echo $(UPX_REAL_TARGET) is already packed) || upx -9 $(UPX_REAL_TARGET)
endif
endif

0 comments on commit 3f3eae3

Please sign in to comment.