From e482fd40c1264cb02584764012db78ae97028dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 18 Jan 2025 11:41:45 -0600 Subject: [PATCH] Update applyPatches.ts --- packages/scripts/src/applyPatches.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/scripts/src/applyPatches.ts b/packages/scripts/src/applyPatches.ts index fd9379787..42981dc75 100644 --- a/packages/scripts/src/applyPatches.ts +++ b/packages/scripts/src/applyPatches.ts @@ -47,9 +47,16 @@ while (true) { ); for (const { path, data } of files) { + console.log(`Patching "${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( `${DATA}/${path}`, new Uint8Array(writeDVPL(Buffer.from(data))),