Skip to content
forked from rellfy/fbsdiff

Generate and apply patch files to file & folder structures using bsdiff and bspatch

License

Notifications You must be signed in to change notification settings

qwb2013/fbsdiff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbsdiff

Dynamically generate and apply patch files to folders using bsdiff and bspatch (http://www.daemonology.net/bsdiff/). Useful when compressing & decompressing files to apply a patch is not a realistic option.

Generating patches with fbsdiff.exe

To generate a patch, use the following command strcture:

fbsdiff oldFolder newFolder patchFile

The generated file will be a .zip that follows the following structure:

=> create/
  => file_to_be_created.txt
  => another_new_file.png
=> patch.index
=> file_to_be_patched.mp4.patch
=> another_existing_file.txt.patch

Applying patches with fbspatch.exe

To apply a patch, use the following command structure:

fbspatch inputFolder patchFile

The patch.index file generated with the patch files contains instructions to every changed file. The instruction might be update, create or delete. Currently, renamed files are not recognized (they will be deleted and then created again with the new name). This will be added in the next version by generating a hash for the file and checking its integrity.

About

Generate and apply patch files to file & folder structures using bsdiff and bspatch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%