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

pref: 优化更新包体积

parent 3ebae990
...@@ -19,7 +19,7 @@ namespace Tools ...@@ -19,7 +19,7 @@ namespace Tools
private static readonly HashSet<string> ExcludedRootDirectories = private static readonly HashSet<string> ExcludedRootDirectories =
new HashSet<string>(StringComparer.OrdinalIgnoreCase) 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", "GPUCache", "ClaudeChat", "AgentChat", "TestResults", "caches",
}; };
......
...@@ -524,19 +524,22 @@ namespace Tools ...@@ -524,19 +524,22 @@ namespace Tools
} }
/// <summary> /// <summary>
/// 打开任务系统 /// 打开任务系统:使用系统默认浏览器,避免依赖本地 WebKit/CEF 运行时。
/// </summary> /// </summary>
private void ShowFetetoWork() private void ShowFetetoWork()
{ {
var assembly = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "WebKit", "WebKit.exe"); const string taskUrl = "http://ftt.feteto.cn:21802/";
if (File.Exists(assembly)) try
{ {
// url;title Process.Start(new ProcessStartInfo
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 #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