added windows compatability

This commit is contained in:
partisan 2025-01-06 22:13:45 +01:00
parent e7faf3d641
commit 0384dbfc37

View file

@ -57,7 +57,7 @@ func ApplyPatches(sourcePath string, patchesRepo string, patchesPath string, pat
} }
// Apply the patches using `run.sh` // Apply the patches using `run.sh`
applyCmd := exec.Command("./run.sh", "--path", sourcePath, "--patches", fullPatchesPath) applyCmd := exec.Command("go", "run", ".", "--path", sourcePath, "--patches", fullPatchesPath) applyCmd.Dir = patchesCloneDir // Run from the patches directory
applyCmd.Dir = patchesCloneDir // Run from the patches directory applyCmd.Dir = patchesCloneDir // Run from the patches directory
applyCmd.Stdout = os.Stdout applyCmd.Stdout = os.Stdout
applyCmd.Stderr = os.Stderr applyCmd.Stderr = os.Stderr