Browse Source

force APP_VERSION_MAJOR to module version

pull/884/head
dreamer 1 month ago
parent
commit
ed4f777daf
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      plugins/plugins.cpp

+ 7
- 1
plugins/plugins.cpp View File

@@ -1069,8 +1069,14 @@ struct StaticPluginLoader {
return;
}

std::string oldVersion = "0.0.0" ;

auto versionJ = json_object_get(rootJ, "version");
if (versionJ != nullptr)
oldVersion = json_string_value(versionJ);

// force ABI, we use static plugins so this doesnt matter as long as it builds
json_t* const version = json_string((APP_VERSION_MAJOR + ".0").c_str());
json_t* const version = json_string(oldVersion.replace(0, 1, APP_VERSION_MAJOR).c_str());
json_object_set(rootJ, "version", version);
json_decref(version);



Loading…
Cancel
Save