forked from space-wizards/RobustToolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Robust.Packaging updates (space-wizards#4547)
- Loading branch information
1 parent
170d192
commit 3da04ed
Showing
6 changed files
with
89 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Robust.Packaging.AssetProcessing; | ||
|
||
namespace Robust.Packaging; | ||
|
||
public sealed class RobustServerPackaging | ||
{ | ||
public static IReadOnlySet<string> ServerIgnoresResources { get; } = new HashSet<string> | ||
{ | ||
"Audio", | ||
"Textures", | ||
"Fonts", | ||
"Shaders", | ||
}; | ||
|
||
public static async Task WriteServerResources( | ||
string contentDir, | ||
AssetPass pass, | ||
CancellationToken cancel = default) | ||
{ | ||
var ignoreSet = ServerIgnoresResources.Union(RobustSharedPackaging.SharedIgnoredResources).ToHashSet(); | ||
|
||
await RobustSharedPackaging.DoResourceCopy(Path.Combine(contentDir, "Resources"), | ||
pass, | ||
ignoreSet, | ||
"Resources", | ||
cancel); | ||
await RobustSharedPackaging.DoResourceCopy(Path.Combine("RobustToolbox", "Resources"), | ||
pass, | ||
ignoreSet, | ||
"Resources", | ||
cancel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters