public async Task ApplyPatchAsync(string oldPath, string patchedPath, string patchPath) { try { await _patchSystem.RunCommandAsync( "-d", "-B" + SourceWindowSize.ToString(), "-f", "-s", oldPath, patchPath, patchedPath); } catch (CommandExecutionException e) { throw new PatchCreationException(e); } }
public async Task CreatePatchAsync(string oldPath, string newPath, string patchPath) { try { await PatchSystem.RunCommandAsync( "-e", "-B" + SourceWindowSize.ToString(), "-" + CompressionLevel, "-S", SecondaryLevelCompression, "-s", oldPath, "-f", "-A", "", newPath, patchPath); } catch (CommandExecutionException e) { throw new PatchCreationException(e); } }