Jackett/src/Jackett.Common/Utils/EnvironmentUtil.cs

15 lines
357 B
C#
Raw Normal View History

2020-02-09 02:35:16 +00:00
using System;
using System.Reflection;
namespace Jackett.Common.Utils
{
public static class EnvironmentUtil
{
2020-02-09 02:35:16 +00:00
public static string JackettVersion => Assembly.GetExecutingAssembly()?.GetName()?.Version?.ToString() ?? "Unknown Version";
public static bool IsWindows => Environment.OSVersion.Platform == PlatformID.Win32NT;
}
}