]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Minor client packaging changes (#33787)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Wed, 15 Jan 2025 00:08:06 +0000 (01:08 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Jan 2025 00:08:06 +0000 (01:08 +0100)
Content.Packaging/ClientPackaging.cs

index a66d4ec5b91403aafbdfecd828d30da87a60c6ab..6d0a46279076d414f811f9cdf1808af37a850220 100644 (file)
@@ -61,7 +61,13 @@ public static class ClientPackaging
         var graph = new RobustClientAssetGraph();
         pass.Dependencies.Add(new AssetPassDependency(graph.Output.Name));
 
-        AssetGraph.CalculateGraph(graph.AllPasses.Append(pass).ToArray(), logger);
+        var dropSvgPass = new AssetPassFilterDrop(f => f.Path.EndsWith(".svg"))
+        {
+            Name = "DropSvgPass",
+        };
+        dropSvgPass.AddDependency(graph.Input).AddBefore(graph.PresetPasses);
+
+        AssetGraph.CalculateGraph([pass, dropSvgPass, ..graph.AllPasses], logger);
 
         var inputPass = graph.Input;
 
@@ -72,7 +78,7 @@ public static class ClientPackaging
             new[] { "Content.Client", "Content.Shared", "Content.Shared.Database" },
             cancel: cancel);
 
-        await RobustClientPackaging.WriteClientResources(contentDir, pass, cancel);
+        await RobustClientPackaging.WriteClientResources(contentDir, inputPass, cancel);
 
         inputPass.InjectFinished();
     }