]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Stop packaging `Resources/ServerInfo` and `Resources/Changelog` on the server (#39897)
authorMyra <vasilis@pikachu.systems>
Thu, 4 Sep 2025 16:38:41 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Sep 2025 16:38:41 +0000 (18:38 +0200)
* Stop packaging `Resources/ServerInfo`

This is only used by the client, it is unneccery to pack into the server. Plus it keeps getting people to think that just editing the server resources will modify the guidebook even though that needs a custom dev enviroment.

* Add credits too

Content.Packaging/ServerPackaging.cs

index 91ebc412261d7e0d117493467f116bc250d2aa2e..a14a22ddeec275916a1598d9209ccddf48eedc8a 100644 (file)
@@ -25,6 +25,12 @@ public static class ServerPackaging
         new PlatformReg("freebsd-x64", "FreeBSD", false),
     };
 
+    private static IReadOnlySet<string> ServerContentIgnoresResources { get; } = new HashSet<string>
+    {
+        "ServerInfo",
+        "Changelog",
+    };
+
     private static List<string> PlatformRids => Platforms
         .Select(o => o.Rid)
         .ToList();
@@ -211,7 +217,7 @@ public static class ServerPackaging
             contentAssemblies,
             cancel: cancel);
 
-        await RobustServerPackaging.WriteServerResources(contentDir, inputPassResources, cancel);
+        await RobustServerPackaging.WriteServerResources(contentDir, inputPassResources, ServerContentIgnoresResources, cancel);
 
         if (hybridAcz)
         {