improve:自动更新

This commit is contained in:
2026-02-12 17:22:47 +08:00
parent 200317a0f5
commit 376790330d
7 changed files with 99 additions and 12 deletions
+1 -1
View File
@@ -1431,7 +1431,7 @@ namespace Ink_Canvas.Helpers
try
{
LogHelper.WriteLogToFile($"AutoUpdate | 开始解压ZIP文件到: {extractPath}");
ZipFile.ExtractToDirectory(zipFilePath, extractPath);
SafeZipExtractor.ExtractZipSafely(zipFilePath, extractPath, overwrite: true);
LogHelper.WriteLogToFile("AutoUpdate | ZIP文件解压完成");
}
catch (Exception ex)