Skip to content

Commit

Permalink
update updater
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Jan 8, 2025
1 parent 6970a4d commit 4f46182
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/update-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,17 @@ async function _overrideNativeFiles() {

for (const pattern of files) {
const matches = glob.sync(pattern, { cwd: rootDir })
for (const file of matches) {
const dest = path.join(rootDir, file.replace("temp" + path.sep, ""))
await fs.promises.copyFile(file, dest)

for (const relativePath of matches) {
const source = path.join(rootDir, relativePath)
const dest = path.join(
rootDir,
relativePath.replace("temp" + path.sep, ""),
)

await fs.promises.mkdir(path.dirname(dest), { recursive: true })

await fs.promises.copyFile(source, dest)
}
}

Expand Down

0 comments on commit 4f46182

Please sign in to comment.