Skip to content

Commit 21664c5

Browse files
authored
fix: Revert change from zstd level 22 to level 6 compression (coder#4086)
1 parent 9e12850 commit 21664c5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ GOARCH := $(shell go env GOARCH)
3737
GOOS_BIN_EXT := $(if $(filter windows, $(GOOS)),.exe,)
3838
VERSION := $(shell ./scripts/version.sh)
3939

40+
# Use the highest ZSTD compression level for the release binaries. For
41+
# development, a sane lower value would be `make build ZSTDFLAGS=-6`.
42+
ZSTDFLAGS := -22 --ultra
43+
4044
# All ${OS}_${ARCH} combos we build for. Windows binaries have the .exe suffix.
4145
OS_ARCHES := \
4246
linux_amd64 linux_arm64 linux_armv7 \
@@ -102,9 +106,8 @@ build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CO
102106
popd
103107

104108
build/coder-slim_$(VERSION).tar.zst site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar
105-
zstd -6 \
109+
zstd $(ZSTDFLAGS) \
106110
--force \
107-
--ultra \
108111
--long \
109112
--no-progress \
110113
-o "build/coder-slim_$(VERSION).tar.zst" \

0 commit comments

Comments
 (0)