change pathing

This commit is contained in:
2025-07-25 21:47:46 -07:00
parent a07958563a
commit 7397fae6f4
3 changed files with 12 additions and 7 deletions

View File

@@ -208,14 +208,14 @@ func showTroubleshootingPopup() {
dialog.NewConfirm("Build rosettax87", msg, func(confirm bool) {
if confirm {
// Check for dependencies
if err := exec.Command("clang", "--version").Run(); err != nil {
m := fmt.Errorf("xcode command line tools are not installed on your computer. Click the Website button in the app and read the instructions on building rosettax87 before trying again")
if err := exec.Command(patching.ClangPath, "--version").Run(); err != nil {
m := fmt.Errorf("xcode command line tools are not installed on your computer. Click the Website button in the app and read the instructions on building rosettax87 before trying again. Error: %v", err)
log.Error(m.Error())
dialog.ShowError(m, currentWindow)
return
}
if err := exec.Command("cmake", "--version").Run(); err != nil {
m := fmt.Errorf("Cmake is not installed on your computer. Click the Website button in the app and read the instructions on building rosettax87 before trying again")
if err := exec.Command(patching.CmakePath, "--version").Run(); err != nil {
m := fmt.Errorf("Cmake is not installed on your computer. Click the Website button in the app and read the instructions on building rosettax87 before trying again. Error: %v", err)
log.Error(m.Error())
dialog.ShowError(m, currentWindow)
return