Skip to main content
13 votes
Accepted

Deploy C#/C++ binaries incrementally by patching the difference

You are looking for a tool that can calculate, transfer, and apply binary diffs. You cannot transfer just modified files, since all files will be modified. However, most parts within the files will ...
amon's user avatar
  • 136k
10 votes

Deploy C#/C++ binaries incrementally by patching the difference

I suggest rsync. Using rsync you don't need to correctly reimplement vast majority of fuctionality like diff algorithm, working with files, network protocol to transfer data and so on. Currently we ...
gapsf's user avatar
  • 216
6 votes

Can 1.0.1 be "applied" in 1.0.0 and in 1.1.0?

merge the branch hotfix-1.0.1 in hotfix-1.1.1 In most cases, yes. Assuming the changes from 1.0 to 1.1 haven't modified so much of the code base that this merge isn't possible or sensible any more, in ...
Doc Brown's user avatar
  • 220k
5 votes
Accepted

Can 1.0.1 be "applied" in 1.0.0 and in 1.1.0?

What would be the best approach in that case, merge the branch hotfix-1.0.1 in hotfix-1.1.1 (to avoid rework) and adapt the code according to the codebase? Merging can be dangerous here, depending on ...
Flater's user avatar
  • 59.5k
3 votes
Accepted

When reconstructing file B from file A and a binary difference B-A, given that A and B-A are correct, do we still need to verify the integrity of B?

The key thing to consider is: How will you handle the situation when this unlikely scenario occurs? If you just get and error and can regenerate b some other way, well the impact is going to be very ...
Ewan's user avatar
  • 84.4k
2 votes

What HTTP response to return for a patch request with partially correct and partially wrong

The registered reference for the PATCH method is RFC 5789. The description of the method includes this constraint: The server MUST apply the entire set of changes atomically and never provide (e.g., ...
VoiceOfUnreason's user avatar
2 votes

What HTTP response to return for a patch request with partially correct and partially wrong

What the server should do depends on what the intended behavior is according to the business requirements. That is not something that a stranger on the internet can conclusively answer for your ...
Flater's user avatar
  • 59.5k
1 vote

When reconstructing file B from file A and a binary difference B-A, given that A and B-A are correct, do we still need to verify the integrity of B?

release process At a bare minimum, you must produce b.tar from binary patches in CI/CD and automatically verify that its hash matched the desired hash. This mitigates the risk of seldom-triggered bugs ...
J_H's user avatar
  • 7,891
1 vote

Deploy C#/C++ binaries incrementally by patching the difference

My feedback Thanks @amon and @gapsf for the provided solutions. My experience so far is: (1) Patching Algorithm BsDiff 4, a nice algorithm originally written in C++ and probably already ported to C#, ...
sɐunıɔןɐqɐp's user avatar
1 vote

Windows Installer: Software updates and hot-fixes

My suggestion: you use your favorite installer framework (for example, since you mentioned it by yourself, Wix) to deploy every changed file at the application site, and include a "server update tool" ...
Doc Brown's user avatar
  • 220k

Only top scored, non community-wiki answers of a minimum length are eligible