2026-04-21 20:59:52 +08:00
|
|
|
namespace Plonds.Shared;
|
|
|
|
|
|
|
|
|
|
public static class PlondsConstants
|
|
|
|
|
{
|
|
|
|
|
public const string ProtocolName = "PLONDS";
|
2026-05-30 11:56:50 +08:00
|
|
|
public const string ProtocolVersion = "2.0";
|
|
|
|
|
public const string FormatVersion = "2.0";
|
2026-04-21 20:59:52 +08:00
|
|
|
|
2026-05-30 11:56:50 +08:00
|
|
|
public const string ActionAdd = "add";
|
|
|
|
|
public const string ActionReplace = "replace";
|
|
|
|
|
public const string ActionReuse = "reuse";
|
|
|
|
|
public const string ActionDelete = "delete";
|
2026-04-21 20:59:52 +08:00
|
|
|
|
2026-05-30 11:56:50 +08:00
|
|
|
public const string HashAlgorithmSha256 = "sha256";
|
|
|
|
|
public const string HashAlgorithmMd5 = "md5";
|
|
|
|
|
|
|
|
|
|
public const string DefaultLauncherRelativePath = "LanMountainDesktop.Launcher.exe";
|
|
|
|
|
|
2026-05-30 13:47:15 +08:00
|
|
|
public const string CompareMethodFileCompare = "file-compare";
|
|
|
|
|
public const string CompareMethodCommitAnalyze = "commit-analyze";
|
|
|
|
|
|
2026-05-30 11:56:50 +08:00
|
|
|
public static readonly string[] SupportedActions =
|
2026-04-21 20:59:52 +08:00
|
|
|
[
|
2026-05-30 11:56:50 +08:00
|
|
|
ActionAdd,
|
|
|
|
|
ActionReplace,
|
|
|
|
|
ActionReuse,
|
|
|
|
|
ActionDelete
|
2026-04-21 20:59:52 +08:00
|
|
|
];
|
|
|
|
|
|
2026-05-30 11:56:50 +08:00
|
|
|
public static readonly string[] SupportedHashAlgorithms =
|
|
|
|
|
[
|
|
|
|
|
HashAlgorithmSha256,
|
|
|
|
|
HashAlgorithmMd5
|
|
|
|
|
];
|
|
|
|
|
|
2026-05-30 13:47:15 +08:00
|
|
|
public static readonly string[] DefaultSourceDirs =
|
2026-05-30 11:56:50 +08:00
|
|
|
[
|
2026-05-30 13:47:15 +08:00
|
|
|
"LanMountainDesktop",
|
|
|
|
|
"LanMountainDesktop.Launcher",
|
|
|
|
|
"LanMountainDesktop.Shared.Contracts",
|
|
|
|
|
"LanMountainDesktop.PluginSdk",
|
|
|
|
|
"LanMountainDesktop.Appearance",
|
|
|
|
|
"LanMountainDesktop.Settings.Core",
|
|
|
|
|
"LanMountainDesktop.ComponentSystem"
|
2026-05-30 11:56:50 +08:00
|
|
|
];
|
|
|
|
|
}
|