From 37835893699f785212ebb112f56bac8a3a73d20d Mon Sep 17 00:00:00 2001 From: Kingcean Date: Tue, 23 Jul 2024 12:24:05 +0800 Subject: [PATCH] Update LWAC project. --- Cli/Lwac.csproj | 5 +++++ Cli/VersionVerb.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Cli/Lwac.csproj b/Cli/Lwac.csproj index eee0c68..9fff162 100644 --- a/Cli/Lwac.csproj +++ b/Cli/Lwac.csproj @@ -18,6 +18,7 @@ ..\bin\$(Configuration)\ ..\bin\$(Configuration)\$(TargetFramework)\lwac.xml + ..\Materials\WinKit.ico @@ -29,6 +30,10 @@ + + + + diff --git a/Cli/VersionVerb.cs b/Cli/VersionVerb.cs index a786777..b9c74fd 100644 --- a/Cli/VersionVerb.cs +++ b/Cli/VersionVerb.cs @@ -320,7 +320,7 @@ private IEnumerable ReplaceStrings(JsonObjectNode json, DirectoryInfo "utf32" => Encoding.UTF32, _ => Encoding.GetEncoding(encodingStr) ?? Encoding.UTF8 }; - if (placeholders == null) yield break; + if (placeholders == null || json.TryGetBooleanValue("disable") == true) yield break; var idOriginal = placeholders.TryGetStringTrimmedValue("id", true); var titleOriginal = placeholders.TryGetStringTrimmedValue("title", true); var versionOriginal = placeholders.TryGetStringTrimmedValue("version", true);