public void DOWNLOAD_REDISTS() { foreach (string redist in UDHT.REDIST) { GITHUB.DOWNLOAD_REDIST(redist); } }
private static void PROCUDE_SCHEDULETASK(ScheduleTaskUDHT t) { switch (t.type) { case "DOWNLOAD_REDISTS": foreach (string redist in UDHT.REDIST) { GITHUB.DOWNLOAD_REDIST(redist); } break; case "WRONG_ARGUMENT": write(false, "You applied unknown argument: ", ConsoleColor.Red); write(true, t.argument, ConsoleColor.DarkRed); break; default: if (UDHT.DEBUG_BUILD) { write(true, "Invalid task provided. Skipping... (" + t.type + "/" + t.argument + ")", ConsoleColor.Yellow); } else { write(true, "Invalid task provided. Skipping...", ConsoleColor.Yellow); } break; } }
public void UPDATE_UDHT() { string[] r = new string[] { "jackglow", "vkcss" }; Program.write(true, "Getting last release version from GitHub...", ConsoleColor.Yellow); // if (GITHUB.REPO_EXISTS(r[0], r[1])) { dynamic releaseinfo = GITHUB.GET_LATEST_RELEASE_INFO(r[0], r[1]); if (releaseinfo.tag_name != UDHT.VERSION) { Program.write(true, "Update found! Downloading to a archive."); Program.write(true, "You would need to unpack him yourself."); GITHUB.DOWNLOAD_LATEST_REALESE(r[0], r[1]); } } else { Program.write(true, "Repository wasn't found.", ConsoleColor.DarkRed); } }