Esempio n. 1
0
        public static async Task<UpdateDetails> CheckForUpdate()
        {
            var updateDetails = new UpdateDetails
            {
                CurrentVersion = CurrentVersion,
                UpdateAvailable = false,
                LatestVersion = ""
            };

            var releases = await Client.Repository.Release.GetAll("Jonno12345", "TileIconifier");
            var latestRelease = releases[0];
            updateDetails.LatestVersion = Regex.Replace(latestRelease.TagName, @"[^0-9\.]", "");
            updateDetails.UpdateAvailable = LatestIsNewerThanCurrent(CurrentVersion, updateDetails.LatestVersion);

            return updateDetails;
        }
Esempio n. 2
0
        public static async Task <UpdateDetails> CheckForUpdate()
        {
            var updateDetails = new UpdateDetails
            {
                CurrentVersion  = CurrentVersion,
                UpdateAvailable = false,
                LatestVersion   = ""
            };

            var releases = await Client.Repository.Release.GetAll("Jonno12345", "TileIconifier");

            var latestRelease = releases[0];

            updateDetails.LatestVersion   = Regex.Replace(latestRelease.TagName, @"[^0-9\.]", "");
            updateDetails.UpdateAvailable = LatestIsNewerThanCurrent(CurrentVersion, updateDetails.LatestVersion);

            return(updateDetails);
        }