Browse Source

Use rsync for copying dist files. Add presets/ dir to generated Makefile in helper.py.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
a3bfe67338
2 changed files with 3 additions and 6 deletions
  1. +2
    -1
      helper.py
  2. +1
    -5
      plugin.mk

+ 2
- 1
helper.py View File

@@ -88,8 +88,9 @@ SOURCES += $(wildcard src/*.cpp)


# Add files to the ZIP package when running `make dist` # Add files to the ZIP package when running `make dist`
# The compiled plugin and "plugin.json" are automatically added. # The compiled plugin and "plugin.json" are automatically added.
DISTRIBUTABLES += res
DISTRIBUTABLES += $(wildcard LICENSE*) DISTRIBUTABLES += $(wildcard LICENSE*)
DISTRIBUTABLES += res
DISTRIBUTABLES += presets


# Include the Rack plugin Makefile framework # Include the Rack plugin Makefile framework
include $(RACK_DIR)/plugin.mk include $(RACK_DIR)/plugin.mk


+ 1
- 5
plugin.mk View File

@@ -73,11 +73,7 @@ else
$(STRIP) -s dist/$(SLUG)/$(TARGET) $(STRIP) -s dist/$(SLUG)/$(TARGET)
endif endif
@# Copy distributables @# 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 @# Create ZIP package
cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH).vcvplugin cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH).vcvplugin




Loading…
Cancel
Save