mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 03:21:32 +08:00
[linux] Fix discovery of npm, docker and upx (#1174)
This commit is contained in:
parent
c872802ced
commit
9593ea95f7
@ -23,6 +23,29 @@ func (i *Info) discover() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for _, dep := range dependencies {
|
||||
if dep.Name == "npm" {
|
||||
locallyInstalled := checkNPM()
|
||||
if locallyInstalled.Installed {
|
||||
dep.Installed = true
|
||||
dep.Version = locallyInstalled.Version
|
||||
}
|
||||
}
|
||||
if dep.Name == "docker" {
|
||||
locallyInstalled := checkDocker()
|
||||
if locallyInstalled.Installed {
|
||||
dep.Installed = true
|
||||
dep.Version = locallyInstalled.Version
|
||||
}
|
||||
}
|
||||
if dep.Name == "upx" {
|
||||
locallyInstalled := checkUPX()
|
||||
if locallyInstalled.Installed {
|
||||
dep.Installed = true
|
||||
dep.Version = locallyInstalled.Version
|
||||
}
|
||||
}
|
||||
}
|
||||
i.Dependencies = dependencies
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user