feat(releases): add SelfUpdater.DecideUpdateAsync

This commit is contained in:
mika kuns
2026-04-23 14:40:45 +02:00
parent ba0b38b4f1
commit e017d66023
3 changed files with 131 additions and 0 deletions

View File

@@ -1,3 +1,15 @@
namespace ClaudeDo.Releases;
public sealed record InstallerAssetMatch(ReleaseAsset Asset, string Version);
public enum SelfUpdateDecisionKind
{
NoUpdate,
UpdateAvailable,
}
public sealed record SelfUpdateDecision(
SelfUpdateDecisionKind Kind,
string? LatestVersion = null,
ReleaseAsset? InstallerAsset = null,
ReleaseAsset? ChecksumsAsset = null);