change how to check for dependencies
This commit is contained in:
@@ -208,13 +208,13 @@ func showTroubleshootingPopup() {
|
||||
dialog.NewConfirm("Build rosettax87", msg, func(confirm bool) {
|
||||
if confirm {
|
||||
// Check for dependencies
|
||||
if _, err := exec.LookPath("clang"); err != nil {
|
||||
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")
|
||||
log.Error(m.Error())
|
||||
dialog.ShowError(m, currentWindow)
|
||||
return
|
||||
}
|
||||
if _, err := exec.LookPath("cmake"); err != nil {
|
||||
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")
|
||||
log.Error(m.Error())
|
||||
dialog.ShowError(m, currentWindow)
|
||||
|
Reference in New Issue
Block a user