change pathing
This commit is contained in:
@@ -21,6 +21,11 @@ import (
|
||||
"fyne.io/fyne/v2/dialog"
|
||||
)
|
||||
|
||||
const (
|
||||
CmakePath = "/opt/homebrew/bin/cmake"
|
||||
ClangPath = "/usr/bin/clang"
|
||||
)
|
||||
|
||||
func PatchEpoch(myWindow fyne.Window, updateAllStatuses func()) {
|
||||
log.Debug("Patch Epoch clicked")
|
||||
if paths.EpochPath == "" {
|
||||
@@ -486,14 +491,14 @@ func BuildRosetta() (string, string, error) {
|
||||
return "", "", fmt.Errorf("failed to clone repository: %v", err)
|
||||
}
|
||||
|
||||
cmd := exec.Command("cmake", "-B", "build")
|
||||
cmd := exec.Command(CmakePath, "-B", "build")
|
||||
cmd.Dir = clonedDir
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
return "", "", fmt.Errorf("failed to create build files: %v", err)
|
||||
}
|
||||
|
||||
cmd = exec.Command("cmake", "--build", "build")
|
||||
cmd = exec.Command(CmakePath, "--build", "build")
|
||||
cmd.Dir = clonedDir
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user