Browse Source

Check that plugin is available for this arch when checking library updates.

tags/v2.2.3
Andrew Belt 1 year ago
parent
commit
dba531ffe2
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      src/library.cpp

+ 8
- 4
src/library.cpp View File

@@ -255,7 +255,7 @@ void checkUpdates() {
continue;
}

// Check if update is needed
// Check that update is needed
plugin::Plugin* p = plugin::getPlugin(pluginSlug);
if (p) {
if (update.version == p->version)
@@ -264,9 +264,13 @@ void checkUpdates() {
continue;
}

// Require that plugin is available
json_t* availableJ = json_object_get(manifestJ, "available");
if (!json_boolean_value(availableJ))
// Check that plugin is available for this arch
json_t* archesJ = json_object_get(manifestJ, "arches");
if (!archesJ)
continue;
std::string arch = APP_OS + "-" + APP_CPU;
json_t* archJ = json_object_get(archesJ, arch.c_str());
if (!json_boolean_value(archJ))
continue;

// Get changelog URL


Loading…
Cancel
Save