From a3bfe673384c4bdb3b5ad50edc41cea44ce98e16 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 18 Sep 2021 20:10:45 -0400 Subject: [PATCH] Use rsync for copying dist files. Add presets/ dir to generated Makefile in helper.py. --- helper.py | 3 ++- plugin.mk | 6 +----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/helper.py b/helper.py index 61e3877d..44b74d8f 100755 --- a/helper.py +++ b/helper.py @@ -88,8 +88,9 @@ SOURCES += $(wildcard src/*.cpp) # Add files to the ZIP package when running `make dist` # The compiled plugin and "plugin.json" are automatically added. -DISTRIBUTABLES += res DISTRIBUTABLES += $(wildcard LICENSE*) +DISTRIBUTABLES += res +DISTRIBUTABLES += presets # Include the Rack plugin Makefile framework include $(RACK_DIR)/plugin.mk diff --git a/plugin.mk b/plugin.mk index 600815ff..7cde265e 100644 --- a/plugin.mk +++ b/plugin.mk @@ -73,11 +73,7 @@ else $(STRIP) -s dist/$(SLUG)/$(TARGET) endif @# Copy distributables -ifdef ARCH_MAC - rsync -rR $(DISTRIBUTABLES) dist/$(SLUG)/ -else - cp -r --parents $(DISTRIBUTABLES) dist/$(SLUG)/ -endif + rsync -vrR --ignore-missing-args $(DISTRIBUTABLES) dist/$(SLUG)/ @# Create ZIP package cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH).vcvplugin