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
|
|
|
|
|
{
|
2016-05-19 02:38:43 +08:00
|
|
|
|
public static class Constant
|
2016-04-27 09:15:53 +08:00
|
|
|
|
{
|
2016-05-19 02:38:43 +08:00
|
|
|
|
public const string Wox = "Wox";
|
2016-05-04 09:26:19 +08:00
|
|
|
|
public const string Plugins = "Plugins";
|
2016-05-08 02:16:13 +08:00
|
|
|
|
|
2016-05-09 05:13:23 +08:00
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
2016-05-19 02:38:43 +08: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);
|
2016-06-22 07:42:24 +08:00
|
|
|
|
public static readonly string PluginsDirectory = Path.Combine(DataDirectory, Plugins);
|
2016-05-19 02:38:43 +08:00
|
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
2016-05-08 05:44:38 +08:00
|
|
|
|
public const string Github = "https://github.com/Wox-launcher/Wox";
|
2016-05-21 04:16:25 +08:00
|
|
|
|
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
2016-05-09 05:13:23 +08:00
|
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location).ProductVersion;
|
2016-07-20 09:01:47 +08:00
|
|
|
|
|
2016-08-20 08:02:47 +08:00
|
|
|
|
public static readonly string DefaultIcon = Path.Combine(ProgramDirectory, "Images", "app.png");
|
|
|
|
|
public static readonly string ErrorIcon = Path.Combine(ProgramDirectory, "Images", "app_error.png");
|
|
|
|
|
|
2016-07-20 09:01:47 +08:00
|
|
|
|
public static string PythonPath;
|
|
|
|
|
public static string EverythingSDKPath;
|
2016-04-27 09:15:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|