2016-04-27 02:15:53 +01:00
|
|
|
|
using System;
|
2016-05-08 22:13:23 +01:00
|
|
|
|
using System.Diagnostics;
|
2016-04-27 02:15:53 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure
|
|
|
|
|
|
{
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public static class Constant
|
2016-04-27 02:15:53 +01:00
|
|
|
|
{
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public const string Wox = "Wox";
|
2016-05-04 02:26:19 +01:00
|
|
|
|
public const string Plugins = "Plugins";
|
2016-05-07 19:16:13 +01:00
|
|
|
|
public const string Settings = "Settings";
|
|
|
|
|
|
|
2016-05-08 22:13:23 +01:00
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
2016-05-18 19:38:43 +01:00
|
|
|
|
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location).ToString();
|
|
|
|
|
|
public static readonly string ExecutablePath = Path.Combine(ProgramDirectory, Wox + ".exe");
|
|
|
|
|
|
public static readonly string DataDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Wox);
|
|
|
|
|
|
public static readonly string UserDirectory = Path.Combine(DataDirectory, Plugins);
|
|
|
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
|
|
|
|
|
public static readonly string SettingsPath = Path.Combine(DataDirectory, Settings);
|
2016-05-07 22:44:38 +01:00
|
|
|
|
public const string Github = "https://github.com/Wox-launcher/Wox";
|
2016-05-20 21:16:25 +01:00
|
|
|
|
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
2016-05-08 22:13:23 +01:00
|
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
2016-04-27 02:15:53 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|