docs: 补充用户与开发者文档
- 新增 README.md,面向用户说明功能、运行要求、快速开始、触发器和常见问题。 - 新增 DEVELOPMENT.md,面向开发者说明项目结构、构建运行、发布流程、提交规范和检查清单。 - 将 artifacts/ 加入忽略规则,避免误提交本地发布产物。 - 修正托盘图标加载方式,改为读取 exe 内嵌图标,匹配不包含外置 app.ico 的发布包结构。
This commit is contained in:
@@ -66,10 +66,10 @@ public partial class MainWindow : Window, INotifyPropertyChanged
|
||||
});
|
||||
menu.Items.Add("退出", null, (_, _) => ExitApplication());
|
||||
|
||||
var iconPath = System.IO.Path.Combine(AppContext.BaseDirectory, "app.ico");
|
||||
var icon = new Forms.NotifyIcon
|
||||
{
|
||||
Icon = new System.Drawing.Icon(iconPath),
|
||||
Icon = System.Drawing.Icon.ExtractAssociatedIcon(Environment.ProcessPath ?? string.Empty)
|
||||
?? System.Drawing.SystemIcons.Application,
|
||||
Text = "OmniScheduler",
|
||||
Visible = true,
|
||||
ContextMenuStrip = menu
|
||||
|
||||
Reference in New Issue
Block a user