2020-02-09 02:35:16 +00:00
|
|
|
using System;
|
2017-11-13 08:38:38 +00:00
|
|
|
using System.Reflection;
|
|
|
|
|
2018-03-10 08:05:56 +00:00
|
|
|
namespace Jackett.Common.Utils
|
2017-11-13 08:38:38 +00:00
|
|
|
{
|
|
|
|
public static class EnvironmentUtil
|
|
|
|
{
|
2020-02-09 02:35:16 +00:00
|
|
|
|
2017-11-13 08:38:38 +00:00
|
|
|
public static string JackettVersion
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString() ?? "Unknown Version";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static bool IsWindows
|
|
|
|
{
|
|
|
|
get
|
|
|
|
{
|
|
|
|
return Environment.OSVersion.Platform == PlatformID.Win32NT;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|