fix windows robocopy

This commit is contained in:
partisan 2024-09-11 13:19:06 +02:00
parent 610a5abae1
commit 221317be93
2 changed files with 8 additions and 9 deletions

View file

@ -4,4 +4,3 @@
"SFHost": "web.sourceforge.net", "SFHost": "web.sourceforge.net",
"SFProject": "spitfire-browser" "SFProject": "spitfire-browser"
} }

View file

@ -146,8 +146,8 @@ func UpdatePatches(patchesDir, patchesRepo, sourcePath string) {
// Handle platform-specific rsync command // Handle platform-specific rsync command
fmt.Println("Copying files from patches directory to Firefox source directory...") fmt.Println("Copying files from patches directory to Firefox source directory...")
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
// Use robocopy for Windows instead of rsync // Use robocopy for Windows
if err := runCommand("robocopy", patchesDir, sourcePath, "/MIR"); err != nil { if err := runCommand("robocopy", patchesDir, sourcePath, "*", "/E", "/XF", ".git"); err != nil {
errors = append(errors, "Failed to copy files (Windows robocopy).") errors = append(errors, "Failed to copy files (Windows robocopy).")
} }
} else { } else {