From cb6282778043bc56bd27df1fcf63d642bac0e896 Mon Sep 17 00:00:00 2001 From: justerzhu Date: Tue, 10 Dec 2024 16:05:01 +0800 Subject: [PATCH] Update MainWindowViewModel.cs --- src/ViewModels/MainWindowViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/MainWindowViewModel.cs b/src/ViewModels/MainWindowViewModel.cs index c0d7925..51638b8 100644 --- a/src/ViewModels/MainWindowViewModel.cs +++ b/src/ViewModels/MainWindowViewModel.cs @@ -147,7 +147,12 @@ await DifferentialCore.Instance.Clean(ConfigModel.AppDirectory, var parentDirectory = directoryInfo.Parent!.FullName; var operationType = ConfigModel.Format.Value; var encoding = ConfigModel.Encoding.Value; - CompressProvider.Compress(operationType, ConfigModel.PatchDirectory, parentDirectory, false, encoding); + + CompressProvider.Compress(operationType + , ConfigModel.PatchDirectory + , Path.Combine(parentDirectory,ConfigModel.Name+ ConfigModel.Format.Value) + , false, encoding); + if (Directory.Exists(ConfigModel.PatchDirectory)) DeleteDirectoryRecursively(ConfigModel.PatchDirectory);