Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

chore: don't use upx to compress built binaries #4571

Merged
merged 1 commit into from
Jul 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ build-cross:
CGO_ENABLED=0 gox -output="_dist/aks-engine-$(GITTAG)-{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)'

.PHONY: dist
dist: build-cross compress-binaries
dist: build-cross
( \
cd _dist && \
$(DIST_DIRS) cp ../LICENSE {} \; && \
Expand All @@ -126,11 +126,6 @@ dist: build-cross compress-binaries
$(DIST_DIRS) zip -r {}.zip {} \; \
)

.PHONY: compress-binaries
compress-binaries:
@which upx || (echo "Please install the upx executable packer tool. See https://upx.github.io/" && exit 1)
find _dist -type f \( -name "aks-engine" -o -name "aks-engine.exe" \) -exec upx -9 {} +

.PHONY: checksum
checksum:
for f in _dist/*.{gz,zip} ; do \
Expand Down