Пример #1
0
        public static bool IsLatest()
        {
            string localVersion  = ProductInfoUtility.GetVersion();
            string latestVersion = JsonReleaseInfo.GetVersion();

            return(string.Equals(localVersion, latestVersion));
        }
Пример #2
0
        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);
        }
Пример #3
0
 public static string GetLatestVersion()
 {
     JsonReleaseInfo.FetchInfo(JsonReleaseInfo.GetReleaseUrl());
     return(JsonReleaseInfo.GetVersion());
 }