Commit 322b30f7 authored by 段廷瑞's avatar 段廷瑞

pref: 优化更新包体积

parent 3ebae990
......@@ -19,7 +19,7 @@ namespace Tools
private static readonly HashSet<string> ExcludedRootDirectories =
new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
".vs", "Logs", "log", "temp", "save", "Package", "Shares",
".vs", "Logs", "log", "temp", "save", "Package", "Shares", "WebKit",
"GPUCache", "ClaudeChat", "AgentChat", "TestResults", "caches",
};
......
......@@ -524,19 +524,22 @@ namespace Tools
}
/// <summary>
/// 打开任务系统
/// 打开任务系统:使用系统默认浏览器,避免依赖本地 WebKit/CEF 运行时。
/// </summary>
private void ShowFetetoWork()
{
var assembly = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebKit", "WebKit.exe");
if (File.Exists(assembly))
const string taskUrl = "http://ftt.feteto.cn:21802/";
try
{
Process.Start(new ProcessStartInfo
{
// url;title
Process.Start(assembly, "http://ftt.feteto.cn:21802/;Feteto任务系统");
FileName = taskUrl,
UseShellExecute = true,
});
}
else
catch (Exception ex)
{
Process.Start("http://ftt.feteto.cn:21802/");
Utils.Tip("打开任务系统失败:\r\n" + ex.Message);
}
}
#endregion
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment