Fix Content.Packaging doesn't include secrets into a final server package (#3502)

This commit is contained in:
Jerry
2026-02-07 22:06:45 +05:00
committed by GitHub
parent 66d45285fe
commit 49794858f2

View File

@@ -235,15 +235,13 @@ public static class ServerPackaging
var depsContentExclusive = depsContent.Except(depsRobust).ToHashSet();
// Remove .dll suffix and apply filtering.
var names = depsContentExclusive.Select(p => p[..^4]).Where(p => !ServerNotExtraAssemblies.Any(p.StartsWith));
var names = depsContentExclusive.Select(p => p[..^4]).Where(p => !ServerNotExtraAssemblies.Any(p.StartsWith)).ToList();
// Corvax-Secrets-Start
names.Append("Content.Corvax.Interfaces.Shared");
names.Append("Content.Corvax.Interfaces.Server");
if (UseSecrets)
{
names.Append("Content.Corvax.Shared");
names.Append("Content.Corvax.Server");
names.Add("Content.Corvax.Shared");
names.Add("Content.Corvax.Server");
}
// Corvax-Secrets-End