mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 04:11:56 +08:00
[mac] better wails doctor
This commit is contained in:
parent
a300172adc
commit
22f09772d3
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user