From 91f16c1701481407cbb8521f509aa16d3e30d167 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Tue, 26 Dec 2023 22:10:57 +0800 Subject: [PATCH] impl #1230 --- .../Snap.Hutao/Service/DailyNote/DailyNoteService.cs | 2 +- .../Service/DailyNote/DailyNoteWebhookOperation.cs | 4 +++- src/Snap.Hutao/Snap.Hutao/Service/Update/UpdateService.cs | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs b/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs index 2abc4b4c..59946a3d 100644 --- a/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs +++ b/src/Snap.Hutao/Snap.Hutao/Service/DailyNote/DailyNoteService.cs @@ -147,7 +147,7 @@ internal sealed partial class DailyNoteService : IDailyNoteService, IRecipient(); - string updatetTargetPath = runtimeOptions.GetDataFolderUpdateCacheFolderFile(UpdaterFilename); + string updaterTargetPath = runtimeOptions.GetDataFolderUpdateCacheFolderFile(UpdaterFilename); Uri updaterSourceUri = $"ms-appx:///{UpdaterFilename}".ToUri(); StorageFile updaterFile = await StorageFile.GetFileFromApplicationUriAsync(updaterSourceUri); - await updaterFile.OverwriteCopyAsync(updatetTargetPath).ConfigureAwait(false); + await updaterFile.OverwriteCopyAsync(updaterTargetPath).ConfigureAwait(false); string commandLine = new CommandLineBuilder() .Append("--package-path", GetUpdatePackagePath(runtimeOptions)) @@ -89,7 +89,7 @@ internal sealed partial class UpdateService : IUpdateService { Arguments = commandLine, WindowStyle = ProcessWindowStyle.Minimized, - FileName = updatetTargetPath, + FileName = updaterTargetPath, UseShellExecute = true, }); }