mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 09:14:25 +08:00
feat.PLONDS系统会不断地改进
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Plonds.Shared.Models;
|
||||
|
||||
public sealed record PlondsManifest(
|
||||
@@ -11,9 +9,6 @@ public sealed record PlondsManifest(
|
||||
string Channel,
|
||||
string Platform,
|
||||
DateTimeOffset UpdatedAt,
|
||||
string CompareMethod,
|
||||
[property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
string? HashAlgorithm,
|
||||
IReadOnlyDictionary<string, PlondsFileEntry> FilesMap,
|
||||
IReadOnlyDictionary<string, PlondsChangedFileEntry> ChangedFilesMap,
|
||||
IReadOnlyDictionary<string, string> Checksums);
|
||||
|
||||
@@ -11,14 +11,14 @@ public static class PlondsConstants
|
||||
public const string ActionReuse = "reuse";
|
||||
public const string ActionDelete = "delete";
|
||||
|
||||
public const string CompareMethodFileCompare = "file-compare";
|
||||
public const string CompareMethodCommitAnalyze = "commit-analyze";
|
||||
|
||||
public const string HashAlgorithmSha256 = "sha256";
|
||||
public const string HashAlgorithmMd5 = "md5";
|
||||
|
||||
public const string DefaultLauncherRelativePath = "LanMountainDesktop.Launcher.exe";
|
||||
|
||||
public const string CompareMethodFileCompare = "file-compare";
|
||||
public const string CompareMethodCommitAnalyze = "commit-analyze";
|
||||
|
||||
public static readonly string[] SupportedActions =
|
||||
[
|
||||
ActionAdd,
|
||||
@@ -33,9 +33,14 @@ public static class PlondsConstants
|
||||
HashAlgorithmMd5
|
||||
];
|
||||
|
||||
public static readonly string[] SupportedCompareMethods =
|
||||
public static readonly string[] DefaultSourceDirs =
|
||||
[
|
||||
CompareMethodFileCompare,
|
||||
CompareMethodCommitAnalyze
|
||||
"LanMountainDesktop",
|
||||
"LanMountainDesktop.Launcher",
|
||||
"LanMountainDesktop.Shared.Contracts",
|
||||
"LanMountainDesktop.PluginSdk",
|
||||
"LanMountainDesktop.Appearance",
|
||||
"LanMountainDesktop.Settings.Core",
|
||||
"LanMountainDesktop.ComponentSystem"
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user