diff --git a/Patcher/PatchClient/PatchClient.csproj b/Patcher/PatchClient/PatchClient.csproj
index 184eb16..8b30351 100644
--- a/Patcher/PatchClient/PatchClient.csproj
+++ b/Patcher/PatchClient/PatchClient.csproj
@@ -4,8 +4,8 @@
net6.0
true
enable
- 2.9.1
- 2.9.1
+ 2.9.2
+ 2.9.2
diff --git a/Patcher/PatchGenerator/PatchGenerator.csproj b/Patcher/PatchGenerator/PatchGenerator.csproj
index e65b5ff..7f0dd90 100644
--- a/Patcher/PatchGenerator/PatchGenerator.csproj
+++ b/Patcher/PatchGenerator/PatchGenerator.csproj
@@ -4,8 +4,8 @@
net6.0
true
enable
- 2.9.1
- 2.9.1
+ 2.9.2
+ 2.9.2
diff --git a/Patcher/PatchGenerator/Resources/PatchClient.exe b/Patcher/PatchGenerator/Resources/PatchClient.exe
index 7c57d50..72f382c 100644
--- a/Patcher/PatchGenerator/Resources/PatchClient.exe
+++ b/Patcher/PatchGenerator/Resources/PatchClient.exe
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f9cf2ae93f039eb57c003823bb4f40acddc105c7d9bbeef4fea0160bb82ed274
-size 25323180
+oid sha256:6a9a1031ebda804492b75ecbbb1862f63d2185d25192bcd95738f281f145015d
+size 25324204
diff --git a/Patcher/PatcherUtils/Model/PatchLogger.cs b/Patcher/PatcherUtils/Model/PatchLogger.cs
index 4c39331..3669be6 100644
--- a/Patcher/PatcherUtils/Model/PatchLogger.cs
+++ b/Patcher/PatcherUtils/Model/PatchLogger.cs
@@ -1,5 +1,6 @@
using System;
using System.IO;
+using System.Runtime.InteropServices;
namespace PatcherUtils.Model
{
@@ -23,6 +24,24 @@ namespace PatcherUtils.Model
return DateTime.Now.ToString("MM/dd/yyyy - hh:mm:ss tt]");
}
+ public static void LogOSInfo()
+ {
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
+ LogToFile($"{GetTimestamp()}[OS]: Windows");
+
+ if(RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
+ LogToFile($"{GetTimestamp()}[OS]: Linux");
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ LogToFile($"{GetTimestamp()}[OS]: OSX");
+
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.FreeBSD))
+ LogToFile($"{GetTimestamp()}[OS]: FreeBSD");
+
+
+ LogToFile($"{GetTimestamp()}[OS]: {RuntimeInformation.OSDescription}");
+ }
+
public static void LogInfo(string message) => LogToFile($"{GetTimestamp()}[INFO]: {message}");
public static void LogError(string message) => LogToFile($"{GetTimestamp()}[ERROR]: {message}");
public static void LogException(Exception ex) => LogToFile($"{GetTimestamp()}[EXCEPTION]: {ex.Message}\n\nStackTrace:\n{ex.StackTrace}");
diff --git a/Patcher/PatcherUtils/PatchHelper.cs b/Patcher/PatcherUtils/PatchHelper.cs
index 7875b84..489fc6f 100644
--- a/Patcher/PatcherUtils/PatchHelper.cs
+++ b/Patcher/PatcherUtils/PatchHelper.cs
@@ -374,6 +374,8 @@ namespace PatcherUtils
{
PatchLogger.LogInfo("::: Starting patch application :::");
+ PatchLogger.LogOSInfo();
+
//get needed directory information
DirectoryInfo sourceDir = new DirectoryInfo(SourceFolder);
DirectoryInfo deltaDir = new DirectoryInfo(DeltaFolder);