fix: remove Windows symlink workaround for git clone (#299)

- The installer uses copyRecursiveSync which copies files,
  not symlinks, so git clone without core.symlinks works fine
- The previous Windows-specific git -c core.symlinks=true clone
  required admin privileges, causing install failures
- This fix allows non-admin Windows users to install

Fixes #286

Co-authored-by: 阳虎 <yanghu@yanghudeMacBook-Pro.local>
This commit is contained in:
yang1002378395-cmyk
2026-03-15 00:47:42 +08:00
committed by GitHub
parent 3feeba5ff9
commit b9ce8c9011

View File

@@ -244,11 +244,7 @@ function main() {
try {
console.log("Cloning repository…");
if (process.platform === "win32") {
run("git", ["-c", "core.symlinks=true", "clone", REPO, tempDir]);
} else {
run("git", ["clone", REPO, tempDir]);
}
run("git", ["clone", REPO, tempDir]);
const ref =
tagArg ||