docs/using/delta-packages.md
| docs / using / delta-packages.md |
|---|
Now, once we've got a full package, we need to generate a Delta package. To do this, we'll replace all the DLL/EXEs in the NuGet packages with bsdiff files. bspatch/bsdiff is a mostly efficient algorithm for calculating diffs between binary files (especially Native binaries, but it works well for .NET ones too), and a way to apply them.
So, this is pretty easy:
lib\net40\MyCoolApp.exe becomes lib\net40\MyCoolApp.exe.diff. Create a file that contains a SHA1 of the expected resulting file and its filesize called lib\net40\MyCoolApp.exe.shasumThe .shasum file has the same format as the Releases file described in the "'Latest' Pointer" section, except that it will only have one entry.
So now we've got all of the metadata of the original package, just none of its contents. To get the final package, we do the following:
| Return: Table of Contents |
|---|