mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
Update applyPatches.ts
This commit is contained in:
1 parent
3708a3ced7
commit
cc4569966e
1 file changed
+9
-15
@@ -46,23 +46,17 @@ while (true) {
|
|||||||
files.length,
|
files.length,
|
||||||
);
|
);
|
||||||
|
|
||||||
await Promise.all(
|
for (const { path, data } of files) {
|
||||||
files.map(async ({ path, data }) => {
|
const { dir } = parsePath(path);
|
||||||
const { dir } = parsePath(path);
|
|
||||||
const dirPath = `${DATA}/${dir}`;
|
|
||||||
|
|
||||||
if (!existsSync(dirPath)) {
|
await mkdir(`${DATA}/${dir}`, { recursive: true });
|
||||||
await mkdir(dirPath, { recursive: true });
|
await writeFile(
|
||||||
}
|
`${DATA}/${path}`,
|
||||||
|
new Uint8Array(writeDVPL(Buffer.from(data))),
|
||||||
|
);
|
||||||
|
|
||||||
await writeFile(
|
bar.tick();
|
||||||
`${DATA}/${path}`,
|
}
|
||||||
new Uint8Array(writeDVPL(Buffer.from(data))),
|
|
||||||
);
|
|
||||||
|
|
||||||
bar.tick();
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
|
|
||||||
if ('dynamicContentLocalizationsDir' in data) {
|
if ('dynamicContentLocalizationsDir' in data) {
|
||||||
console.log('Found dynamic content localizations; patching...');
|
console.log('Found dynamic content localizations; patching...');
|
||||||
|
|||||||
Reference in new issue
Block a user