@@ -5,8 +5,8 @@ namespace rack { | |||||
std::string gApplicationName = "VCV Rack"; | std::string gApplicationName = "VCV Rack"; | ||||
std::string gApplicationVersion = TOSTRING(VERSION); | std::string gApplicationVersion = TOSTRING(VERSION); | ||||
// std::string gApiHost = "https://api.vcvrack.com"; | |||||
std::string gApiHost = "http://localhost:8081"; | |||||
std::string gApiHost = "https://api.vcvrack.com"; | |||||
// std::string gApiHost = "http://localhost:8081"; | |||||
RackWidget *gRackWidget = NULL; | RackWidget *gRackWidget = NULL; | ||||
Toolbar *gToolbar = NULL; | Toolbar *gToolbar = NULL; | ||||
@@ -127,6 +127,16 @@ static bool loadPlugin(std::string path) { | |||||
} | } | ||||
static bool syncPlugin(std::string slug, json_t *manifestJ, bool dryRun) { | static bool syncPlugin(std::string slug, json_t *manifestJ, bool dryRun) { | ||||
// Check that "status" is "available" | |||||
json_t *statusJ = json_object_get(manifestJ, "status"); | |||||
if (!statusJ) { | |||||
return false; | |||||
} | |||||
std::string status = json_string_value(statusJ); | |||||
if (status != "available") { | |||||
return false; | |||||
} | |||||
// Get latest version | // Get latest version | ||||
json_t *latestVersionJ = json_object_get(manifestJ, "latestVersion"); | json_t *latestVersionJ = json_object_get(manifestJ, "latestVersion"); | ||||
if (!latestVersionJ) { | if (!latestVersionJ) { | ||||