Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成的patch无法被bspatch使用 #3

Open
gucong3000 opened this issue Dec 7, 2016 · 2 comments
Open

生成的patch无法被bspatch使用 #3

gucong3000 opened this issue Dec 7, 2016 · 2 comments

Comments

@gucong3000
Copy link

gucong3000 commented Dec 7, 2016

const fs = require("fs-extra-async");
// bsdiff 生成补丁
var diffBuf = bsdiff.diff(originBuf, zipBuffer);
fs.outputFileAsync("dist/" + oldzip + ".patch", diffBuf)
cdyf@QIL:/mnt/e/work/static_hybrid$ bspatch dist/all_1.3.3.zip new.zip dist/all_1.3.3.zip.patch
bspatch: Corrupt patch
@tdzl2003
Copy link
Member

tdzl2003 commented Sep 4, 2017

楼主是brew install的bspatch?可能会是版本不一致导致的。这个模块当时是拉的最新的bsdiff源码,brew里的可能会老一点。

@gucong3000
Copy link
Author

apt-get 安装的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants