示例#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());
 }