diff --git a/README.md b/README.md index 2d80872..03045ce 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ 2. 基于bsdiff算法创建的**超小更新包**,通常版本迭代后在1-10KB之间,避免数百KB的流量消耗。 3. 支持崩溃回滚,安全可靠。 4. meta信息及开放API,提供更高扩展性。 +5. 跨越多个版本进行更新时,只需要下载**一个更新包**,不需要逐版本依次更新。 ### 安装与快速入门 diff --git a/docs/guide.md b/docs/guide.md index 8ade1f7..657f73e 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -149,6 +149,8 @@ public class MainActivity extends ReactActivity { NSIncludesSubdomains + NSExceptionAllowsInsecureHTTPLoads + diff --git a/local-cli/src/bundle.js b/local-cli/src/bundle.js index c5ad3b8..b7dac3c 100644 --- a/local-cli/src/bundle.js +++ b/local-cli/src/bundle.js @@ -99,6 +99,9 @@ function readEntire(entry, zipFile) { }, end() { resolve(Buffer.concat(buffers)); + }, + prependListener() { + }, on() { }, @@ -155,7 +158,7 @@ async function diffFromPPK(origin, next, output) { function addEntry(fn) { //console.log(fn); - if (addedEntry[fn]) { + if (!fn || addedEntry[fn]) { return; } const base = basename(fn);