From 53d809615e7a01822ff8a7701eb45c31dd43ab81 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Thu, 27 Apr 2017 03:09:45 +0200 Subject: [PATCH] Add note about pre-release versions --- ArchiSteamFarm/ASF.cs | 10 ++++++++-- ArchiSteamFarm/Localization/Strings.Designer.cs | 11 ++++++++++- ArchiSteamFarm/Localization/Strings.resx | 3 +++ 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/ASF.cs b/ArchiSteamFarm/ASF.cs index 389b0c152..0cb91b31f 100644 --- a/ArchiSteamFarm/ASF.cs +++ b/ArchiSteamFarm/ASF.cs @@ -121,7 +121,13 @@ namespace ArchiSteamFarm { ArchiLogger.LogGenericInfo(string.Format(Strings.UpdateVersionInfo, SharedInfo.Version, newVersion)); - if (SharedInfo.Version.CompareTo(newVersion) >= 0) { // If local version is the same or newer than remote version + if (SharedInfo.Version == newVersion) { + return; + } + + if (SharedInfo.Version > newVersion) { + ArchiLogger.LogGenericWarning(Strings.WarningPreReleaseVersion); + await Task.Delay(15 * 1000).ConfigureAwait(false); return; } @@ -143,7 +149,7 @@ namespace ArchiSteamFarm { } string exeFileName = Path.GetFileName(exeFile); - GitHub.ReleaseResponse.Asset binaryAsset = releaseResponse.Assets.FirstOrDefault(asset => !string.IsNullOrEmpty(asset.Name) && asset.Name.Equals(exeFileName, StringComparison.OrdinalIgnoreCase)); + GitHub.ReleaseResponse.Asset binaryAsset = releaseResponse.Assets.FirstOrDefault(asset => asset.Name.Equals(exeFileName, StringComparison.OrdinalIgnoreCase)); if (binaryAsset == null) { ArchiLogger.LogGenericWarning(Strings.ErrorUpdateNoAssetForThisBinary); diff --git a/ArchiSteamFarm/Localization/Strings.Designer.cs b/ArchiSteamFarm/Localization/Strings.Designer.cs index fd7d6cd7c..b63d73858 100644 --- a/ArchiSteamFarm/Localization/Strings.Designer.cs +++ b/ArchiSteamFarm/Localization/Strings.Designer.cs @@ -47,7 +47,7 @@ namespace ArchiSteamFarm.Localization { } /// - /// Zastępuje właściwość CurrentUICulture bieżącego wątku dla wszystkich + /// Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich /// przypadków przeszukiwania zasobów za pomocą tej klasy zasobów wymagającej zdefiniowania typu. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] @@ -1422,6 +1422,15 @@ namespace ArchiSteamFarm.Localization { } } + /// + /// Wyszukuje zlokalizowany ciąg podobny do ciągu You're using a version that is newer than latest released version for your update channel. Please note that pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given.. + /// + internal static string WarningPreReleaseVersion { + get { + return ResourceManager.GetString("WarningPreReleaseVersion", resourceCulture); + } + } + /// /// Wyszukuje zlokalizowany ciąg podobny do ciągu Please review our privacy policy section on the wiki if you're concerned about what ASF is in fact doing!. /// diff --git a/ArchiSteamFarm/Localization/Strings.resx b/ArchiSteamFarm/Localization/Strings.resx index 0018b4828..09ea69cb4 100644 --- a/ArchiSteamFarm/Localization/Strings.resx +++ b/ArchiSteamFarm/Localization/Strings.resx @@ -688,4 +688,7 @@ StackTrace: Access denied! + + You're using a version that is newer than latest released version for your update channel. Please note that pre-release versions are dedicated to users who know how to report bugs, deal with issues and give feedback - no technical support will be given. + \ No newline at end of file