1
0
mirror of https://gitcode.com/github-mirrors/react-native-update-cli.git synced 2025-11-22 16:26:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Compare commits

...

1 Commits

2 changed files with 3 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update-cli", "name": "react-native-update-cli",
"version": "2.4.1", "version": "2.4.2",
"description": "command line tool for react-native-update (remote updates for react native)", "description": "command line tool for react-native-update (remote updates for react native)",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View File

@@ -578,7 +578,6 @@ async function diffFromPPK(origin: string, next: string, output: string) {
} }
const copies = {}; const copies = {};
const copiesv2 = {};
const zipfile = new YazlZipFile(); const zipfile = new YazlZipFile();
@@ -640,7 +639,6 @@ async function diffFromPPK(origin: string, next: string, output: string) {
addEntry(base); addEntry(base);
} }
copies[entry.fileName] = originMap[entry.crc32]; copies[entry.fileName] = originMap[entry.crc32];
copiesv2[entry.crc32] = entry.fileName;
return; return;
} }
@@ -673,7 +671,7 @@ async function diffFromPPK(origin: string, next: string, output: string) {
//console.log({copies, deletes}); //console.log({copies, deletes});
zipfile.addBuffer( zipfile.addBuffer(
Buffer.from(JSON.stringify({ copies, copiesv2, deletes })), Buffer.from(JSON.stringify({ copies, deletes })),
'__diff.json', '__diff.json',
); );
zipfile.end(); zipfile.end();
@@ -718,7 +716,6 @@ async function diffFromPackage(
} }
const copies = {}; const copies = {};
const copiesv2 = {};
const zipfile = new YazlZipFile(); const zipfile = new YazlZipFile();
@@ -754,7 +751,6 @@ async function diffFromPackage(
// If moved from other place // If moved from other place
if (originMap[entry.crc32]) { if (originMap[entry.crc32]) {
copies[entry.fileName] = originMap[entry.crc32]; copies[entry.fileName] = originMap[entry.crc32];
copiesv2[entry.crc32] = entry.fileName;
return; return;
} }
@@ -773,10 +769,7 @@ async function diffFromPackage(
} }
}); });
zipfile.addBuffer( zipfile.addBuffer(Buffer.from(JSON.stringify({ copies })), '__diff.json');
Buffer.from(JSON.stringify({ copies, copiesv2 })),
'__diff.json',
);
zipfile.end(); zipfile.end();
await writePromise; await writePromise;
} }