Browse Source

Clean up dist filenames.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
e53d8ac481
2 changed files with 10 additions and 8 deletions
  1. +2
    -2
      Makefile
  2. +8
    -6
      src/plugin.cpp

+ 2
- 2
Makefile View File

@@ -139,9 +139,9 @@ endif


DIST_RES := LICENSE* CHANGELOG.md res cacert.pem Core.json template.vcv
DIST_NAME := VCV-Rack-$(VERSION)-$(ARCH)
DIST_NAME := Rack.$(VERSION).$(ARCH)
DIST_SDK_DIR := Rack-SDK
DIST_SDK := Rack-SDK-$(VERSION).zip
DIST_SDK := Rack-SDK.$(VERSION).zip
ifdef ARCH_MAC
DIST_DIR := VCV Rack.app
else


+ 8
- 6
src/plugin.cpp View File

@@ -228,12 +228,14 @@ void init() {
loadPlugins(pluginsPath);

// If Fundamental wasn't loaded, copy the bundled Fundamental package and load it
std::string fundamentalSrc = asset::system("Fundamental.vcvplugin");
std::string fundamentalDir = system::join(pluginsPath, "Fundamental");
if (!settings::devMode && !getPlugin("Fundamental") && system::isFile(fundamentalSrc)) {
INFO("Extracting bundled Fundamental package");
system::unarchiveToDirectory(fundamentalSrc.c_str(), pluginsPath.c_str());
loadPlugin(fundamentalDir);
if (!settings::devMode && !getPlugin("Fundamental")) {
std::string fundamentalSrc = asset::system("Fundamental.vcvplugin");
std::string fundamentalDir = system::join(pluginsPath, "Fundamental");
if (system::isFile(fundamentalSrc)) {
INFO("Extracting bundled Fundamental package");
system::unarchiveToDirectory(fundamentalSrc.c_str(), pluginsPath.c_str());
loadPlugin(fundamentalDir);
}
}
}



Loading…
Cancel
Save