fix windows robocopy
This commit is contained in:
parent
39a3e90c42
commit
048bbc1e3e
2 changed files with 8 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"SFKeyPath": "~/.ssh/id_rsa.pub",
|
||||
"SFUser": "internet-addict",
|
||||
"SFHost": "web.sourceforge.net",
|
||||
"SFProject": "spitfire-browser"
|
||||
}
|
||||
|
||||
"SFKeyPath": "~/.ssh/id_rsa.pub",
|
||||
"SFUser": "internet-addict",
|
||||
"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