mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
Update applyPatches.ts
This commit is contained in:
1 parent
cc4569966e
commit
e482fd40c1
1 file changed
+8
-1
@@ -47,9 +47,16 @@ while (true) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
for (const { path, data } of files) {
|
for (const { path, data } of files) {
|
||||||
|
console.log(`Patching "${path}"...`);
|
||||||
|
|
||||||
const { dir } = parsePath(path);
|
const { dir } = parsePath(path);
|
||||||
|
|
||||||
await mkdir(`${DATA}/${dir}`, { recursive: true });
|
try {
|
||||||
|
await mkdir(`${DATA}/${dir}`, { recursive: true });
|
||||||
|
} catch (error) {
|
||||||
|
console.warn(`Failed to make directory "${dir}"`);
|
||||||
|
}
|
||||||
|
|
||||||
await writeFile(
|
await writeFile(
|
||||||
`${DATA}/${path}`,
|
`${DATA}/${path}`,
|
||||||
new Uint8Array(writeDVPL(Buffer.from(data))),
|
new Uint8Array(writeDVPL(Buffer.from(data))),
|
||||||
|
|||||||
Reference in new issue
Block a user