2016-04-27 01:15:53 +00:00
|
|
|
|
using System;
|
2016-05-08 21:13:23 +00:00
|
|
|
|
using System.Diagnostics;
|
2016-04-27 01:15:53 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wox.Infrastructure
|
|
|
|
|
|
{
|
2016-05-18 18:38:43 +00:00
|
|
|
|
public static class Constant
|
2016-04-27 01:15:53 +00:00
|
|
|
|
{
|
2016-05-18 18:38:43 +00:00
|
|
|
|
public const string Wox = "Wox";
|
2016-05-04 01:26:19 +00:00
|
|
|
|
public const string Plugins = "Plugins";
|
2016-05-07 18:16:13 +00:00
|
|
|
|
|
2016-05-08 21:13:23 +00:00
|
|
|
|
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
|
2017-04-01 11:54:05 +00:00
|
|
|
|
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location.NonNull()).ToString();
|
2016-05-18 18:38:43 +00:00
|
|
|
|
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-21 23:42:24 +00:00
|
|
|
|
public static readonly string PluginsDirectory = Path.Combine(DataDirectory, Plugins);
|
2016-05-18 18:38:43 +00:00
|
|
|
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
2017-03-07 19:23:42 +00:00
|
|
|
|
public const string Repository = "https://github.com/Wox-launcher/Wox";
|
2016-05-20 20:16:25 +00:00
|
|
|
|
public const string Issue = "https://github.com/Wox-launcher/Wox/issues/new";
|
2017-04-01 11:54:05 +00:00
|
|
|
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
|
2016-07-20 01:01:47 +00:00
|
|
|
|
|
2018-03-31 07:19:55 +00:00
|
|
|
|
public static readonly int ThumbnailSize = 64;
|
2016-08-20 00:02:47 +00: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 01:01:47 +00:00
|
|
|
|
public static string PythonPath;
|
|
|
|
|
|
public static string EverythingSDKPath;
|
2016-04-27 01:15:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|