fix: Revert change from zstd level 22 to level 6 compression (#4086)

This commit is contained in:
Mathias Fredriksson 2022-09-16 18:36:11 +03:00 committed by GitHub
parent 9e12850f38
commit 21664c5c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -37,6 +37,10 @@ GOARCH := $(shell go env GOARCH)
GOOS_BIN_EXT := $(if $(filter windows, $(GOOS)),.exe,)
VERSION := $(shell ./scripts/version.sh)
# Use the highest ZSTD compression level for the release binaries. For
# development, a sane lower value would be `make build ZSTDFLAGS=-6`.
ZSTDFLAGS := -22 --ultra
# All ${OS}_${ARCH} combos we build for. Windows binaries have the .exe suffix.
OS_ARCHES := \
linux_amd64 linux_arm64 linux_armv7 \
@ -102,9 +106,8 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO
popd
build/coder-slim_$(VERSION).tar.zst site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar
zstd -6 \
zstd $(ZSTDFLAGS) \
--force \
--ultra \
--long \
--no-progress \
-o "build/coder-slim_$(VERSION).tar.zst" \