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