fix auto update

This commit is contained in:
ChangSakura 2023-12-22 00:33:38 +08:00
parent 0d309c13a4
commit 0d78c9acfd
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ namespace Ink_Canvas.Helpers
{ {
string localVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(); string localVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
string remoteAddress = proxy; string remoteAddress = proxy;
remoteAddress += "https://raw.githubusercontent.com/ChangSakura/Ink-Canvas/main/AutomaticUpdateVersionControl.txt"; remoteAddress += "https://raw.githubusercontent.com/ChangSakura/Ink-Canvas/master/AutomaticUpdateVersionControl.txt";
string remoteVersion = await GetRemoteVersion(remoteAddress); string remoteVersion = await GetRemoteVersion(remoteAddress);
if (remoteVersion != null) if (remoteVersion != null)

View File

@ -2693,7 +2693,7 @@ namespace Ink_Canvas {
} }
private async void BtnCheckAutoUpdateProxyReturnedData_Click(object sender, RoutedEventArgs e) { private async void BtnCheckAutoUpdateProxyReturnedData_Click(object sender, RoutedEventArgs e) {
string ProxyReturnedData = await AutoUpdateHelper.GetRemoteVersion(Settings.Startup.AutoUpdateProxy + "https://raw.githubusercontent.com/ChangSakura/Ink-Canvas/main/AutomaticUpdateVersionControl.txt"); string ProxyReturnedData = await AutoUpdateHelper.GetRemoteVersion(Settings.Startup.AutoUpdateProxy + "https://raw.githubusercontent.com/ChangSakura/Ink-Canvas/master/AutomaticUpdateVersionControl.txt");
ShowNotification(ProxyReturnedData); ShowNotification(ProxyReturnedData);
} }

View File

@ -49,5 +49,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.4.2.0")] [assembly: AssemblyVersion("4.4.1.0")]
[assembly: AssemblyFileVersion("4.4.2.0")] [assembly: AssemblyFileVersion("4.4.1.0")]