From 3fea359c221967b04a3fe865f1a8a9a1b775c11e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 17 May 2019 11:56:17 -0400 Subject: [PATCH] Include helper.py in SDK --- Makefile | 9 +++++---- plugin.mk | 2 +- src/plugin.cpp | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index afa922a2..09be3787 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ ifdef ARCH_LIN ldd dist/Rack/$(TARGET) cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip # Make ZIP - cd dist && zip -q -5 -r Rack-$(VERSION)-$(ARCH).zip Rack + cd dist && zip -q -9 -r Rack-$(VERSION)-$(ARCH).zip Rack endif ifdef ARCH_MAC mkdir -p dist/$(TARGET).app @@ -128,7 +128,7 @@ ifdef ARCH_MAC codesign --verify --verbose dist/$(TARGET).app spctl --assess --verbose dist/$(TARGET).app # Make ZIP - cd dist && zip -q -5 -r Rack-$(VERSION)-$(ARCH).zip $(TARGET).app + cd dist && zip -q -9 -r Rack-$(VERSION)-$(ARCH).zip $(TARGET).app endif ifdef ARCH_WIN mkdir -p dist/Rack @@ -140,7 +140,7 @@ ifdef ARCH_WIN cp /mingw64/bin/libgcc_s_seh-1.dll dist/Rack/ cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip # Make ZIP - cd dist && zip -q -5 -r Rack-$(VERSION)-$(ARCH).zip Rack + cd dist && zip -q -9 -r Rack-$(VERSION)-$(ARCH).zip Rack # Make NSIS installer # pacman -S mingw-w64-x86_64-nsis makensis -DVERSION=$(VERSION) installer.nsi @@ -154,10 +154,11 @@ endif cp -R include dist/Rack-SDK/ mkdir -p dist/Rack-SDK/dep/ cp -R dep/include dist/Rack-SDK/dep/ + cp helper.py dist/Rack-SDK/ ifdef ARCH_WIN cp libRack.a dist/Rack-SDK/ endif - cd dist && zip -q -5 -r Rack-SDK-$(VERSION).zip Rack-SDK + cd dist && zip -q -9 -r Rack-SDK-$(VERSION).zip Rack-SDK # Obviously this will only work if you have the private keys to my server diff --git a/plugin.mk b/plugin.mk index 04ee8d34..4f76e14c 100644 --- a/plugin.mk +++ b/plugin.mk @@ -64,7 +64,7 @@ endif @# Copy distributables cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ @# Create ZIP package - cd dist && zip -q -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) + cd dist && zip -q -9 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) install: dist cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(RACK_USER_DIR)/plugins/ diff --git a/src/plugin.cpp b/src/plugin.cpp index a4295693..0e5276f3 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -314,6 +314,7 @@ void init() { std::string fundamentalSrc = asset::system("Fundamental.zip"); std::string fundamentalDir = asset::user("plugins/Fundamental"); if (!settings::devMode && !getPlugin("Fundamental") && system::isFile(fundamentalSrc)) { + INFO("Extracting bundled Fundamental package"); extractZip(fundamentalSrc.c_str(), pluginsDir.c_str()); loadPlugin(fundamentalDir); }