fix: 修复发布包启动失败
- 移除主窗口、设置窗口和任务编辑窗口对 app.ico 资源路径的直接引用。 - 避免发布包不包含外置 app.ico 时 WPF 在加载窗口 BAML 阶段抛出 XamlParseException。 - 保留 exe 图标嵌入和托盘图标从 exe 读取的发布包结构。 - 已重新发布并验证 release 目录中的 OmniScheduler.exe 可正常启动。
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
Width="1180"
|
||||
MinHeight="640"
|
||||
MinWidth="980"
|
||||
Icon="app.ico"
|
||||
Closing="Window_Closing">
|
||||
<Window.Resources>
|
||||
<SolidColorBrush x:Key="PanelBrush" Color="#F5F7FA" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user