fix windows robocopy
This commit is contained in:
parent
39a3e90c42
commit
048bbc1e3e
2 changed files with 8 additions and 9 deletions
|
@ -4,4 +4,3 @@
|
|||
"SFHost": "web.sourceforge.net",
|
||||
"SFProject": "spitfire-browser"
|
||||
}
|
||||
|
|
@ -146,8 +146,8 @@ func UpdatePatches(patchesDir, patchesRepo, sourcePath string) {
|
|||
// Handle platform-specific rsync command
|
||||
fmt.Println("Copying files from patches directory to Firefox source directory...")
|
||||
if runtime.GOOS == "windows" {
|
||||
// Use robocopy for Windows instead of rsync
|
||||
if err := runCommand("robocopy", patchesDir, sourcePath, "/MIR"); err != nil {
|
||||
// Use robocopy for Windows
|
||||
if err := runCommand("robocopy", patchesDir, sourcePath, "*", "/E", "/XF", ".git"); err != nil {
|
||||
errors = append(errors, "Failed to copy files (Windows robocopy).")
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue