From bdcb40813ed60f688ea146082c5098da705409e1 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 30 May 2021 10:18:11 -0400 Subject: [PATCH] Add ZSTD_COMPRESSION_LEVEL variable to plugin.mk --- plugin.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.mk b/plugin.mk index e951c593..555dc2f1 100644 --- a/plugin.mk +++ b/plugin.mk @@ -57,6 +57,8 @@ include $(RACK_DIR)/compile.mk clean: rm -rfv build $(TARGET) dist +ZSTD_COMPRESSION_LEVEL ?= 19 + dist: all rm -rf dist mkdir -p dist/$(SLUG) @@ -77,7 +79,7 @@ else cp -r --parents $(DISTRIBUTABLES) dist/$(SLUG)/ endif @# Create ZIP package - cd dist && tar -c $(SLUG) | zstd -19 -o $(SLUG)-"$(VERSION)"-$(ARCH).vcvplugin + cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o $(SLUG)-"$(VERSION)"-$(ARCH).vcvplugin install: dist mkdir -p "$(RACK_USER_DIR)"/plugins-v2/