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

@@ -5,8 +5,7 @@
Height="330"
Width="560"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Icon="app.ico">
ResizeMode="NoResize">
<DockPanel Margin="16">
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0">
<TextBlock x:Name="ValidationText" Foreground="#B42318" VerticalAlignment="Center" Margin="0,0,12,0" />