Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 736 Bytes

README.md

File metadata and controls

49 lines (32 loc) · 736 Bytes

QPatch

Android 基于 bsdiff 的补丁合并方案

bsdiff and bspatch

bsdiffbspatch 是一个创建和应用补丁到二进制文件的工具。

bsdiff:用于拆分 bapatch:用于合并

Ubuntu:

sudo apt-get install bsdiff
sudo apt-get install bspatch

Mac:

brew install bsdiff
brew install bspatch

PC 端生成补丁

补丁生成

$ bsdiff oldFile newFile patchFile

补丁合成

$ bspatch oldFile newFile patchFile

使用 QPatch 在 Android 端合成补丁

QPatch.patch(oldFile, newFile, patchFile);

相关源码