mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-04 19:16:07 +02:00
Tools: Fix desktop build issue on Windows
This commit is contained in:
parent
c2d6da83c0
commit
e38794171a
@ -10,9 +10,16 @@ async function main() {
|
||||
|
||||
for (const destDir of destDirs) {
|
||||
console.info(`Copying to ${destDir}`);
|
||||
await fs.remove(destDir);
|
||||
await fs.mkdirp(destDir);
|
||||
await fs.copy(sourceDir, destDir);
|
||||
|
||||
try {
|
||||
await fs.remove(destDir);
|
||||
await fs.copy(sourceDir, destDir);
|
||||
} catch (error) {
|
||||
// These calls randomly fail on Windows when the folders are being
|
||||
// watch by TypeScript. As these files aren't always needed for
|
||||
// development, only print a warning.
|
||||
console.warn(`Could not copy to ${destDir}`, error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user