fix windows links, lang self references

This commit is contained in:
Stewart Allen 2025-07-07 23:31:44 -04:00
commit d7bc0ae017
11 changed files with 20 additions and 19 deletions

View file

@ -12,7 +12,7 @@ async function main() {
.map(line => line.trim())
.map(line => line.split(',').map(v => v.trim()));
if (os.platform() === 'win32')
if (os.platform() === 'win32') {
// convert links to the contents of the files/directories they reference
for (let [link, target] of links) {
const absoluteTarget = path.resolve(path.dirname(link), target);
@ -24,6 +24,9 @@ async function main() {
console.error(`Error creating symlink: ${link} -> ${absoluteTarget}`, err);
}
}
} else {
console.log('skipping symlink conversion');
}
}
main().catch(err => console.error('Error', err));