- tweak: improve update resolver for further updates

This commit is contained in:
2026-01-23 23:52:21 +03:00
parent c2ab550329
commit 6e6ebffb62
19 changed files with 228 additions and 107 deletions

View File

@@ -0,0 +1,8 @@
using System.Text.Json.Serialization;
namespace Nebula.SharedModels;
public record struct LauncherManifest(
[property: JsonPropertyName("entries")] HashSet<LauncherManifestEntry> Entries,
[property: JsonPropertyName("runtime_info")] LauncherRuntimeInfo RuntimeInfo
);

View File

@@ -0,0 +1,8 @@
using System.Text.Json.Serialization;
namespace Nebula.SharedModels;
public record struct LauncherManifestEntry(
[property: JsonPropertyName("hash")] string Hash,
[property: JsonPropertyName("path")] string Path
);

View File

@@ -0,0 +1,7 @@
using System.Text.Json.Serialization;
namespace Nebula.SharedModels;
public record struct LauncherRuntimeInfo(
[property: JsonPropertyName("version")] string RuntimeVersion,
[property: JsonPropertyName("runtimes")] Dictionary<string, string> DotnetRuntimes);

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>