5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 02:50:36 +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
} else {
version = strings.TrimPrefix(string(output), "xcode-select version ")
version = strings.TrimSpace(version)
version = strings.TrimSuffix(version, ".")
}
xcodeDep := &packagemanager.Dependancy{
@ -39,5 +40,6 @@ func (i *Info) discover() error {
External: false,
}
i.Dependencies = append(i.Dependencies, xcodeDep)
i.Dependencies = append(i.Dependencies, checkNPM())
return nil
}