mirror of https://github.com/Jackett/Jackett
28 lines
532 B
C#
28 lines
532 B
C#
|
using System;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
namespace Jacket.Common.Utils
|
|||
|
{
|
|||
|
public static class EnvironmentUtil
|
|||
|
{
|
|||
|
|
|||
|
public static string JackettVersion
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString() ?? "Unknown Version";
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public static bool IsWindows
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return Environment.OSVersion.Platform == PlatformID.Win32NT;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|