Skip to content

Commit

Permalink
Force github plugins re-update due to compatibility reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Sep 19, 2024
1 parent dca2e6f commit 2c0e14f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ArchiSteamFarm/Plugins/Interfaces/IGitHubPluginUpdates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,12 @@ public interface IGitHubPluginUpdates : IPluginUpdates {
Version newVersion = new(releaseResponse.Tag);

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) {
Expand Down

0 comments on commit 2c0e14f

Please sign in to comment.