1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-17 22:16:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

extend new patchType: *.apk.hpatch & *.ppk.hpatch

This commit is contained in:
sisong
2021-04-05 18:45:42 +08:00
parent 48e0849804
commit c4d2523a92
11 changed files with 222 additions and 49 deletions

View File

@@ -167,6 +167,19 @@ export async function downloadUpdate(options, eventListeners) {
updateUrl: options.pdiffUrl,
hash: options.hash,
});
}else if (options.hdiffUrl) {
logger('downloading hdiff');
await Pushy.downloadHPatchFromPpk({
updateUrl: options.hdiffUrl,
hash: options.hash,
originHash: currentVersion,
});
} else if (options.phdiffUrl) {
logger('downloading phdiff');
await Pushy.downloadHPatchFromPackage({
updateUrl: options.phdiffUrl,
hash: options.hash,
});
}
progressHandler && progressHandler.remove();
return options.hash;