feat(build): Allow building in windows without admin priviledges
Closes #2873
This commit is contained in:

committed by
Tobias Bosch

parent
f827e1532e
commit
f1f578436b
@ -41,7 +41,11 @@ class DiffingReplace implements DiffingBroccoliPlugin {
|
||||
});
|
||||
fs.writeFileSync(destFilePath, content, FILE_ENCODING);
|
||||
} else if (!fs.existsSync(destFilePath)) {
|
||||
fs.symlinkSync(sourceFilePath, destFilePath);
|
||||
try {
|
||||
fs.symlinkSync(sourceFilePath, destFilePath);
|
||||
} catch (e) {
|
||||
fs.writeFileSync(destFilePath, fs.readFileSync(sourceFilePath));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user