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);