Add note about pre-release versions

This commit is contained in:
JustArchi
2017-04-27 03:09:45 +02:00
parent 7bd2ce650c
commit 53d809615e
3 changed files with 21 additions and 3 deletions

View File

@@ -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);

View File

@@ -47,7 +47,7 @@ namespace ArchiSteamFarm.Localization {
}
/// <summary>
/// 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.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
@@ -1422,6 +1422,15 @@ namespace ArchiSteamFarm.Localization {
}
}
/// <summary>
/// Wyszukuje zlokalizowany ciąg podobny do ciągu You&apos;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..
/// </summary>
internal static string WarningPreReleaseVersion {
get {
return ResourceManager.GetString("WarningPreReleaseVersion", resourceCulture);
}
}
/// <summary>
/// Wyszukuje zlokalizowany ciąg podobny do ciągu Please review our privacy policy section on the wiki if you&apos;re concerned about what ASF is in fact doing!.
/// </summary>

View File

@@ -688,4 +688,7 @@ StackTrace:
<data name="ErrorAccessDenied" xml:space="preserve">
<value>Access denied!</value>
</data>
<data name="WarningPreReleaseVersion" xml:space="preserve">
<value>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.</value>
</data>
</root>