Skip to content

Commit 8ea1774

Browse files
committed
Edit updater messagebox window name
1 parent a8b2c25 commit 8ea1774

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

ERPLoader/ERPLoader.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
2727
<DebugType>none</DebugType>
2828
<DebugSymbols>false</DebugSymbols>
29-
<OutputPath>../Release</OutputPath>
29+
<OutputPath></OutputPath>
3030
</PropertyGroup>
3131

3232
<ItemGroup>

EasyERPExplorer/EasyERPExplorer.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
2727
<PlatformTarget>x64</PlatformTarget>
28-
<OutputPath>..\Release</OutputPath>
28+
<OutputPath></OutputPath>
2929
<DebugType>none</DebugType>
3030
<DebugSymbols>false</DebugSymbols>
3131
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
@@ -45,6 +45,9 @@
4545
<None Update="EasyERPExplorer.ico">
4646
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4747
</None>
48+
<None Update="Fonts\Roboto-Medium.ttf">
49+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
50+
</None>
4851
</ItemGroup>
4952

5053
</Project>

Updater/EasyUpdater.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1919
<NoWarn>1701;1702;IDE0008;CA1305</NoWarn>
20+
<PlatformTarget>x64</PlatformTarget>
2021
</PropertyGroup>
2122

2223
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
2324
<NoWarn>1701;1702;IDE0008;CA1305</NoWarn>
24-
<OutputPath>..\Release</OutputPath>
25+
<OutputPath></OutputPath>
2526
<DebugType>none</DebugType>
2627
<DebugSymbols>false</DebugSymbols>
2728
<PlatformTarget>x64</PlatformTarget>

Updater/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
66
xmlns:local="clr-namespace:Updater"
77
mc:Ignorable="d"
8-
Title="Updater" Height="400" Width="600" Background="#FF171717" Foreground="#FFE6E6E6" WindowStartupLocation="CenterScreen">
8+
Title="EasyUpdater" Height="400" Width="600" Background="#FF171717" Foreground="#FFE6E6E6" WindowStartupLocation="CenterScreen">
99
<Window.Resources>
1010
<SolidColorBrush x:Key="Button.Static.Background" Color="#FF757575"/>
1111
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF757575"/>

Updater/MainWindow.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Updater
1010
public partial class MainWindow : Window
1111
{
1212
private UpdateInfo updateInfo;
13-
private bool IsAutoUpdate = false;
13+
private bool IsAutoUpdate;
1414

1515
public MainWindow()
1616
{
@@ -37,7 +37,7 @@ public void Start()
3737
{
3838
if (!IsAutoUpdate)
3939
{
40-
MessageBox.Show("No new update found.", Name, MessageBoxButton.OK);
40+
MessageBox.Show("No new update found.", Title, MessageBoxButton.OK);
4141
}
4242

4343
Close();
@@ -66,7 +66,7 @@ private void DownloadButton_Click(object sender, RoutedEventArgs e)
6666

6767
public void OnInstallCompleted(ProcessStartInfo selfUpdater = null)
6868
{
69-
MessageBox.Show($"Install EasyERPMod {updateInfo.Version} succeeded!", Name);
69+
MessageBox.Show($"Install EasyERPMod {updateInfo.Version} succeeded!", Title);
7070

7171
if (selfUpdater != null)
7272
Process.Start(selfUpdater);
@@ -75,7 +75,7 @@ public void OnInstallCompleted(ProcessStartInfo selfUpdater = null)
7575

7676
public void OnInstallFailed(string error)
7777
{
78-
MessageBox.Show($"Failed to update EasyERPMod {updateInfo.Version}! Please try again later.\n\n{error}", Name, MessageBoxButton.OK, MessageBoxImage.Error);
78+
MessageBox.Show($"Failed to update EasyERPMod {updateInfo.Version}! Please try again later.\n\n{error}", Title, MessageBoxButton.OK, MessageBoxImage.Error);
7979
Close();
8080
}
8181
}

Updater/UpdateInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private struct GithubResponse
2626
}
2727

2828
private static readonly HttpClient WebClient = new();
29-
private static readonly string GithubReleaseURL = "https://api.github.com/repos/ducng99/EasyERPMod/releases/tags/v1.4.0";
29+
private static readonly string GithubReleaseURL = "https://api.github.com/repos/ducng99/EasyERPMod/releases/latest";
3030

3131
public string ChangeLog { get; private set; }
3232
public string Version { get; private set; }

0 commit comments

Comments
 (0)