fix: 修复发布包启动失败

- 移除主窗口、设置窗口和任务编辑窗口对 app.ico 资源路径的直接引用。
- 避免发布包不包含外置 app.ico 时 WPF 在加载窗口 BAML 阶段抛出 XamlParseException。
- 保留 exe 图标嵌入和托盘图标从 exe 读取的发布包结构。
- 已重新发布并验证 release 目录中的 OmniScheduler.exe 可正常启动。
This commit is contained in:
2026-05-21 11:59:41 +08:00
parent 45d3ca2f83
commit 8c573bb044
3 changed files with 2 additions and 5 deletions

View File

@@ -6,8 +6,7 @@
Width="900"
MinHeight="620"
MinWidth="820"
WindowStartupLocation="CenterOwner"
Icon="app.ico">
WindowStartupLocation="CenterOwner">
<Window.Resources>
<Style x:Key="SectionTitle" TargetType="TextBlock">
<Setter Property="FontWeight" Value="SemiBold" />