mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-09-19 22:12:05 +00:00
Force github plugins re-update due to compatibility reasons
This commit is contained in:
parent
dca2e6f060
commit
2c0e14fb55
1 changed files with 5 additions and 2 deletions
|
@ -174,9 +174,12 @@ public interface IGitHubPluginUpdates : IPluginUpdates {
|
||||||
Version newVersion = new(releaseResponse.Tag);
|
Version newVersion = new(releaseResponse.Tag);
|
||||||
|
|
||||||
if (!forced && (Version >= newVersion)) {
|
if (!forced && (Version >= newVersion)) {
|
||||||
ASF.ArchiLogger.LogGenericInfo(Strings.FormatPluginUpdateNotFound(Name, Version, newVersion));
|
// Allow same version to be re-updated when we're updating ASF release and more than one asset is found - potential compatibility difference
|
||||||
|
if ((Version > newVersion) || !asfUpdate || (releaseResponse.Assets.Count(static asset => asset.Name.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) < 2)) {
|
||||||
|
ASF.ArchiLogger.LogGenericInfo(Strings.FormatPluginUpdateNotFound(Name, Version, newVersion));
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (releaseResponse.Assets.Count == 0) {
|
if (releaseResponse.Assets.Count == 0) {
|
||||||
|
|
Loading…
Reference in a new issue