Browse Source

Use Makefile wildcard for presets/ dir in helper.py, since the dir is optional. Fix location of Fundamental.vcvplugin in Mac bundle.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
86aed0ce9d
3 changed files with 11 additions and 4 deletions
  1. +4
    -1
      Makefile
  2. +2
    -2
      helper.py
  3. +5
    -1
      plugin.mk

+ 4
- 1
Makefile View File

@@ -193,7 +193,7 @@ ifdef ARCH_MAC
cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp $(DIST_HTML) dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp -R icon.icns dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_BUNDLE)"/Fundamental.vcvplugin
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_BUNDLE)"/Contents/Resources/Fundamental.vcvplugin
# Clean up and sign bundle
xattr -cr dist/"$(DIST_BUNDLE)"
# This will only work if you have the private key to my certificate
@@ -253,6 +253,9 @@ ifdef ARCH_MAC
endif


cleandist:
rm -rfv dist

# Plugin helpers

plugins:


+ 2
- 2
helper.py View File

@@ -88,9 +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 += $(wildcard LICENSE*)
DISTRIBUTABLES += res
DISTRIBUTABLES += presets
DISTRIBUTABLES += $(wildcard LICENSE*)
DISTRIBUTABLES += $(wildcard presets)

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


+ 5
- 1
plugin.mk View File

@@ -73,7 +73,11 @@ else
$(STRIP) -s dist/$(SLUG)/$(TARGET)
endif
@# Copy distributables
rsync -vrR --ignore-missing-args $(DISTRIBUTABLES) dist/$(SLUG)/
ifdef ARCH_MAC
rsync -rR $(DISTRIBUTABLES) dist/$(SLUG)/
else
cp -r --parents $(DISTRIBUTABLES) dist/$(SLUG)/
endif
@# Create ZIP package
cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH).vcvplugin



Loading…
Cancel
Save