mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 13:53:11 +08:00
bugfixes
This commit is contained in:
@@ -60,19 +60,19 @@ export async function downloadUpdate(options) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (options.diff) {
|
||||
if (options.diffUrl) {
|
||||
await HotUpdate.downloadPatchFromPpk({
|
||||
updateUrl: options.diffUrl,
|
||||
hashName: options.hash,
|
||||
originHash: currentVersion,
|
||||
});
|
||||
} else if (options.diff) {
|
||||
} else if (options.pdiffUrl) {
|
||||
await HotUpdate.downloadPatchFromPackage({
|
||||
updateUrl: options.pdiffUrl,
|
||||
hashName: options.hash,
|
||||
});
|
||||
} else {
|
||||
await HotUpdate.downloadPatchFromPackage({
|
||||
await HotUpdate.downloadUpdate({
|
||||
updateUrl: options.updateUrl,
|
||||
hashName: options.hash,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user