fix windows robocopy
This commit is contained in:
parent
39a3e90c42
commit
048bbc1e3e
2 changed files with 8 additions and 9 deletions
|
@ -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 {
|
||||
|
@ -155,7 +155,7 @@ func UpdatePatches(patchesDir, patchesRepo, sourcePath string) {
|
|||
if err := runCommand("rsync", "-av", "--exclude=.git", patchesDir+"/", sourcePath+"/"); err != nil {
|
||||
errors = append(errors, "Failed to copy files (rsync).")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Function to configure Spitfire
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue