public static bool IsLatest() { string localVersion = ProductInfoUtility.GetVersion(); string latestVersion = JsonReleaseInfo.GetVersion(); return(string.Equals(localVersion, latestVersion)); }
public static void UpdatePackage(string tag) { string downloadUrl = JsonReleaseInfo.GetDownloadURL(); string packageName = JsonReleaseInfo.GetPackageName(); var downloader = new PackageDownloader(); downloader.Download(downloadUrl, packageName); downloader.Import(packageName); downloader.Settlement(packageName); }
public static string GetLatestVersion() { JsonReleaseInfo.FetchInfo(JsonReleaseInfo.GetReleaseUrl()); return(JsonReleaseInfo.GetVersion()); }