diff --git a/Application/BuildScripts/PostPublish.bat b/Application/BuildScripts/PostPublish.bat index 666e737f4..a8d975aad 100644 --- a/Application/BuildScripts/PostPublish.bat +++ b/Application/BuildScripts/PostPublish.bat @@ -54,6 +54,9 @@ del "%SolutionDir%Publish\Windows\*pdb" if exist "%SolutionDir%Publish\WindowsPrerelease\web.config" del "%SolutionDir%Publish\WindowsPrerelease\web.config" del "%SolutionDir%Publish\WindowsPrerelease\*pdb" -echo making start script +echo making start scripts @echo dotnet IW4MAdmin.dll > "%SolutionDir%Publish\WindowsPrerelease\StartIW4MAdmin.cmd" @echo dotnet IW4MAdmin.dll > "%SolutionDir%Publish\Windows\StartIW4MAdmin.cmd" + +@(echo #!/bin/bash && echo dotnet IW4MAdmin.dll) > "%SolutionDir%Publish\WindowsPrerelease\StartIW4MAdmin.sh" +@(echo #!/bin/bash && echo dotnet IW4MAdmin.dll) > "%SolutionDir%Publish\Windows\StartIW4MAdmin.sh" diff --git a/Application/Server.cs b/Application/Server.cs index 5ca1034f0..620c5678b 100644 --- a/Application/Server.cs +++ b/Application/Server.cs @@ -808,10 +808,10 @@ namespace IW4MAdmin // hopefully fix wine drive name mangling if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - logPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:", ""); + logPath = Regex.Replace($"{Path.DirectorySeparatorChar}{LogPath}", @"[A-Z]:/", ""); } - if (!File.Exists(LogPath) && !logPath.StartsWith("http")) + if (!File.Exists(logPath) && !logPath.StartsWith("http")) { Logger.WriteError($"{logPath} {loc["SERVER_ERROR_DNE"]}"); #if !DEBUG diff --git a/DiscordWebhook/DiscordWebhook.pyproj b/DiscordWebhook/DiscordWebhook.pyproj index 1a1ee7ea4..f8020fba8 100644 --- a/DiscordWebhook/DiscordWebhook.pyproj +++ b/DiscordWebhook/DiscordWebhook.pyproj @@ -16,6 +16,7 @@ Standard Python launcher False DEBUG=True + C:\Projects\IW4M-Admin\Publish\WindowsPrerelease\DiscordWebhook true @@ -41,8 +42,12 @@ - - + + True + + + True +