5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 14:42:03 +08:00

[mac] better wails doctor

This commit is contained in:
Lea Anthony 2021-05-30 10:18:36 +10:00
parent a300172adc
commit 22f09772d3
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -27,6 +27,7 @@ func (i *Info) discover() error {
installed = false installed = false
} else { } else {
version = strings.TrimPrefix(string(output), "xcode-select version ") version = strings.TrimPrefix(string(output), "xcode-select version ")
version = strings.TrimSpace(version)
version = strings.TrimSuffix(version, ".") version = strings.TrimSuffix(version, ".")
} }
xcodeDep := &packagemanager.Dependancy{ xcodeDep := &packagemanager.Dependancy{
@ -39,5 +40,6 @@ func (i *Info) discover() error {
External: false, External: false,
} }
i.Dependencies = append(i.Dependencies, xcodeDep) i.Dependencies = append(i.Dependencies, xcodeDep)
i.Dependencies = append(i.Dependencies, checkNPM())
return nil return nil
} }