2016-04-27 09:15:53 +08:00
|
|
|
|
using System;
|
2016-05-09 05:13:23 +08:00
|
|
|
|
using System.Diagnostics;
|
2016-04-27 09:15:53 +08:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure
|
|
|
|
|
{
|
|
|
|
|
public static class Wox
|
|
|
|
|
{
|
|
|
|
|
public const string Name = "Wox";
|
2016-05-04 09:26:19 +08:00
|
|
|
|
public const string Plugins = "Plugins";
|
2016-05-08 02:16:13 +08:00
|
|
|
|
public const string Settings = "Settings";
|
|
|
|
|
|
2016-05-09 05:13:23 +08:00
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
|
|
|
|
public static readonly string ProgramPath = Directory.GetParent(Assembly.Location).ToString();
|
2016-04-27 09:15:53 +08:00
|
|
|
|
public static readonly string DataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Name);
|
2016-05-04 09:26:19 +08:00
|
|
|
|
public static readonly string UserDirectory = Path.Combine(DataPath, Plugins);
|
|
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramPath, Plugins);
|
2016-05-08 02:16:13 +08:00
|
|
|
|
public static readonly string SettingsPath = Path.Combine(DataPath, Settings);
|
2016-05-08 05:44:38 +08:00
|
|
|
|
public const string Github = "https://github.com/Wox-launcher/Wox";
|
2016-05-09 05:13:23 +08:00
|
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
2016-04-27 09:15:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|