Skip to content

Commit

Permalink
fix(server): dont publish unneeded files
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMcAssey committed Jan 12, 2025
1 parent 12b0be6 commit 7e318f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GLOKON.Baiters.Core/BaitersServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public ulong ServerId

public virtual void Setup()
{
Log.Information("Setting up server...");
try
{
SteamClient.Init(options.AppId);
Expand Down Expand Up @@ -146,6 +147,7 @@ public virtual async Task RunAsync(CancellationToken cancellationToken)

public virtual void Stop()
{
Log.Information("Stopping server...");
SendPacket(new("server_close"), DataChannel.GameState);
SteamMatchmaking.OnChatMessage -= SteamMatchmaking_OnChatMessage;
SteamMatchmaking.OnLobbyMemberDisconnected -= SteamMatchmaking_OnLobbyMemberDisconnected;
Expand Down
2 changes: 1 addition & 1 deletion GLOKON.Baiters.Core/Plugins/PluginLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static void LoadPlugins(GameManager gm)

IList<Assembly> pluginAssm = [];

foreach (var pluginPath in Directory.GetFiles(pluginsDir, "*.BaitersPlugin*"))
foreach (var pluginPath in Directory.GetFiles(pluginsDir, "*.BaitersPlugin.dll"))
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugSymbols>False</DebugSymbols>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<GenerateDependencyFile>false</GenerateDependencyFile>
<AllowedReferenceRelatedFileExtensions>none</AllowedReferenceRelatedFileExtensions>
<DebugType>None</DebugType>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugSymbols>False</DebugSymbols>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
<GenerateDependencyFile>false</GenerateDependencyFile>
<AllowedReferenceRelatedFileExtensions>none</AllowedReferenceRelatedFileExtensions>
<DebugType>None</DebugType>
</PropertyGroup>
Expand Down

0 comments on commit 7e318f3

Please sign in to comment.