| @@ -193,7 +193,7 @@ ifdef ARCH_MAC | |||||
| cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | ||||
| cp $(DIST_HTML) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | cp $(DIST_HTML) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | ||||
| cp -R icon.icns 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 | # Clean up and sign bundle | ||||
| xattr -cr dist/"$(DIST_BUNDLE)" | xattr -cr dist/"$(DIST_BUNDLE)" | ||||
| # This will only work if you have the private key to my certificate | # This will only work if you have the private key to my certificate | ||||
| @@ -253,6 +253,9 @@ ifdef ARCH_MAC | |||||
| endif | endif | ||||
| cleandist: | |||||
| rm -rfv dist | |||||
| # Plugin helpers | # Plugin helpers | ||||
| plugins: | plugins: | ||||
| @@ -88,9 +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 += $(wildcard LICENSE*) | |||||
| DISTRIBUTABLES += res | DISTRIBUTABLES += res | ||||
| DISTRIBUTABLES += presets | |||||
| DISTRIBUTABLES += $(wildcard LICENSE*) | |||||
| DISTRIBUTABLES += $(wildcard presets) | |||||
| # Include the Rack plugin Makefile framework | # Include the Rack plugin Makefile framework | ||||
| include $(RACK_DIR)/plugin.mk | include $(RACK_DIR)/plugin.mk | ||||
| @@ -73,7 +73,11 @@ else | |||||
| $(STRIP) -s dist/$(SLUG)/$(TARGET) | $(STRIP) -s dist/$(SLUG)/$(TARGET) | ||||
| endif | endif | ||||
| @# Copy distributables | @# 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 | @# 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 | ||||