2026-04-21 20:59:52 +08:00
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
using LanMountainDesktop.Launcher.Models;
|
|
|
|
|
using LanMountainDesktop.Launcher.Services;
|
|
|
|
|
using LanMountainDesktop.Shared.Contracts.Launcher;
|
|
|
|
|
|
|
|
|
|
namespace LanMountainDesktop.Launcher;
|
|
|
|
|
|
2026-04-22 07:31:54 +08:00
|
|
|
[JsonSourceGenerationOptions(
|
|
|
|
|
WriteIndented = true,
|
|
|
|
|
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
|
|
|
|
PropertyNameCaseInsensitive = true)]
|
2026-04-21 20:59:52 +08:00
|
|
|
[JsonSerializable(typeof(SignedFileMap))]
|
|
|
|
|
[JsonSerializable(typeof(UpdateFileEntry))]
|
|
|
|
|
[JsonSerializable(typeof(PlondsUpdateMetadata))]
|
|
|
|
|
[JsonSerializable(typeof(PlondsFileMap))]
|
|
|
|
|
[JsonSerializable(typeof(PlondsComponentEntry))]
|
|
|
|
|
[JsonSerializable(typeof(PlondsFileEntry))]
|
|
|
|
|
[JsonSerializable(typeof(PlondsHashDescriptor))]
|
|
|
|
|
[JsonSerializable(typeof(SnapshotMetadata))]
|
|
|
|
|
[JsonSerializable(typeof(AppVersionInfo))]
|
|
|
|
|
[JsonSerializable(typeof(StartupProgressMessage))]
|
|
|
|
|
[JsonSerializable(typeof(LauncherResult))]
|
|
|
|
|
[JsonSerializable(typeof(HostDiscoveryConfig))]
|
|
|
|
|
[JsonSerializable(typeof(PluginManifest))]
|
|
|
|
|
[JsonSerializable(typeof(PendingUpgrade))]
|
|
|
|
|
[JsonSerializable(typeof(List<PendingUpgrade>))]
|
|
|
|
|
[JsonSerializable(typeof(GitHubRelease))]
|
|
|
|
|
[JsonSerializable(typeof(GitHubAsset))]
|
|
|
|
|
[JsonSerializable(typeof(List<GitHubRelease>))]
|
|
|
|
|
internal sealed partial class AppJsonContext : JsonSerializerContext;
|