ZPatch 1.1.0

dotnet tool install --global ZPatch --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ZPatch --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ZPatch&version=1.1.0
                    
nuke :add-package ZPatch --version 1.1.0
                    

ZPatch

ZPatch is a .NET tool for creating, extracting, and reconstructing patches between ZIP files. This tool is designed to efficiently manage differences between ZIP archives.

Features

  • CreatePatch: Generate a patch file representing the differences between two ZIP files.
  • ExtractPatch: Extract differences from a patch file and save them to a specified directory.

Installation

To use ZPatch, clone the repository and build the project using Visual Studio or the .NET CLI.

Usage

Run the tool from the command line using the zpatch command. Below are the available commands and their parameters.


CreatePatch

Create a patch file representing the differences between two ZIP files.

Parameters:
  • -oldZip (String): Path to the original ZIP file.
  • -newZip (String): Path to the modified ZIP file.
  • -patch (String): Path where the patch file will be saved.
  • -useDiff (Bool): If changed files should be diff patches (default: true)
Example:
zpatch createpatch -oldZip "C:\path\to\old.zip" -newZip "C:\path\to\new.zip" -patch "C:\path\to\old.patch.zip"

ExtractPatch

Extract the differences from a patch file to a specified directory.

Parameters:
  • -oldZip (String): Path to the original ZIP file.
  • -patch (String): Path to the patch file containing differences.
  • -outpath (String): Directory where the extracted files will be saved.
Example:
zpatch extractpatch -oldZip "C:\path\to\old.zip" -patch "C:\path\to\old.patch.zip" -outpath "C:\path\to\new"
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 187 11/28/2024
1.0.0 158 11/28/2024