fix: fall back to junctions on windows

This commit is contained in:
saberzero1
2026-05-26 21:15:20 +02:00
parent 667d487a0f
commit 882d3b3f50
3 changed files with 63 additions and 11 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ import {
gitPull,
popContentFolder,
stashContentFolder,
symlinkOrCopy,
} from "./helpers.js"
import {
handlePluginRestore,
@@ -210,7 +211,7 @@ export async function handleCreate(argv) {
preserveTimestamps: true,
})
} else if (setupStrategy === "symlink") {
await fs.promises.symlink(originalFolder, contentFolder, "dir")
await symlinkOrCopy(originalFolder, contentFolder)
}
} else if (setupStrategy === "new") {
await fs.promises.writeFile(