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,10 +174,13 @@ public interface IGitHubPluginUpdates : IPluginUpdates {
|
|||
Version newVersion = new(releaseResponse.Tag);
|
||||
|
||||
if (!forced && (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;
|
||||
}
|
||||
}
|
||||
|
||||
if (releaseResponse.Assets.Count == 0) {
|
||||
ASF.ArchiLogger.LogGenericWarning(Strings.FormatPluginUpdateNoAssetFound(Name, Version, newVersion));
|
||||
|
|
Loading…
Reference in a new issue