Browse Source

Include helper.py in SDK

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
3fea359c22
3 changed files with 7 additions and 5 deletions
  1. +5
    -4
      Makefile
  2. +1
    -1
      plugin.mk
  3. +1
    -0
      src/plugin.cpp

+ 5
- 4
Makefile View File

@@ -105,7 +105,7 @@ ifdef ARCH_LIN
ldd dist/Rack/$(TARGET) ldd dist/Rack/$(TARGET)
cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip
# Make 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 endif
ifdef ARCH_MAC ifdef ARCH_MAC
mkdir -p dist/$(TARGET).app mkdir -p dist/$(TARGET).app
@@ -128,7 +128,7 @@ ifdef ARCH_MAC
codesign --verify --verbose dist/$(TARGET).app codesign --verify --verbose dist/$(TARGET).app
spctl --assess --verbose dist/$(TARGET).app spctl --assess --verbose dist/$(TARGET).app
# Make ZIP # 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 endif
ifdef ARCH_WIN ifdef ARCH_WIN
mkdir -p dist/Rack mkdir -p dist/Rack
@@ -140,7 +140,7 @@ ifdef ARCH_WIN
cp /mingw64/bin/libgcc_s_seh-1.dll dist/Rack/ cp /mingw64/bin/libgcc_s_seh-1.dll dist/Rack/
cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip cp plugins/Fundamental/dist/*.zip dist/Rack/Fundamental.zip
# Make 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 # Make NSIS installer
# pacman -S mingw-w64-x86_64-nsis # pacman -S mingw-w64-x86_64-nsis
makensis -DVERSION=$(VERSION) installer.nsi makensis -DVERSION=$(VERSION) installer.nsi
@@ -154,10 +154,11 @@ endif
cp -R include dist/Rack-SDK/ cp -R include dist/Rack-SDK/
mkdir -p dist/Rack-SDK/dep/ mkdir -p dist/Rack-SDK/dep/
cp -R dep/include dist/Rack-SDK/dep/ cp -R dep/include dist/Rack-SDK/dep/
cp helper.py dist/Rack-SDK/
ifdef ARCH_WIN ifdef ARCH_WIN
cp libRack.a dist/Rack-SDK/ cp libRack.a dist/Rack-SDK/
endif 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 # Obviously this will only work if you have the private keys to my server


+ 1
- 1
plugin.mk View File

@@ -64,7 +64,7 @@ endif
@# Copy distributables @# Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
@# Create ZIP package @# 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 install: dist
cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(RACK_USER_DIR)/plugins/ cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(RACK_USER_DIR)/plugins/


+ 1
- 0
src/plugin.cpp View File

@@ -314,6 +314,7 @@ void init() {
std::string fundamentalSrc = asset::system("Fundamental.zip"); std::string fundamentalSrc = asset::system("Fundamental.zip");
std::string fundamentalDir = asset::user("plugins/Fundamental"); std::string fundamentalDir = asset::user("plugins/Fundamental");
if (!settings::devMode && !getPlugin("Fundamental") && system::isFile(fundamentalSrc)) { if (!settings::devMode && !getPlugin("Fundamental") && system::isFile(fundamentalSrc)) {
INFO("Extracting bundled Fundamental package");
extractZip(fundamentalSrc.c_str(), pluginsDir.c_str()); extractZip(fundamentalSrc.c_str(), pluginsDir.c_str());
loadPlugin(fundamentalDir); loadPlugin(fundamentalDir);
} }


Loading…
Cancel
Save