mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 04:30:55 +08:00
[windows-x] Update wails doctor
This commit is contained in:
parent
8acfeba3e1
commit
9d9c3d971a
@ -4,9 +4,6 @@ package system
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/wailsapp/wails/v2/internal/system/operatingsystem"
|
"github.com/wailsapp/wails/v2/internal/system/operatingsystem"
|
||||||
"github.com/wailsapp/wails/v2/internal/system/packagemanager"
|
|
||||||
"os/exec"
|
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func (i *Info) discover() error {
|
func (i *Info) discover() error {
|
||||||
@ -18,25 +15,6 @@ func (i *Info) discover() error {
|
|||||||
}
|
}
|
||||||
i.OS = osinfo
|
i.OS = osinfo
|
||||||
|
|
||||||
// Check for gcc
|
|
||||||
output, err := exec.Command("gcc", "--version").Output()
|
|
||||||
installed := true
|
|
||||||
version := ""
|
|
||||||
if err != nil {
|
|
||||||
installed = false
|
|
||||||
} else {
|
|
||||||
version = strings.TrimSpace(strings.Split(string(output), "\n")[0])
|
|
||||||
}
|
|
||||||
gccDependency := &packagemanager.Dependancy{
|
|
||||||
Name: "gcc ",
|
|
||||||
PackageName: "N/A",
|
|
||||||
Installed: installed,
|
|
||||||
InstallCommand: "Available at https://jmeubank.github.io/tdm-gcc/",
|
|
||||||
Version: version,
|
|
||||||
Optional: false,
|
|
||||||
External: false,
|
|
||||||
}
|
|
||||||
i.Dependencies = append(i.Dependencies, gccDependency)
|
|
||||||
i.Dependencies = append(i.Dependencies, checkNPM())
|
i.Dependencies = append(i.Dependencies, checkNPM())
|
||||||
i.Dependencies = append(i.Dependencies, checkUPX())
|
i.Dependencies = append(i.Dependencies, checkUPX())
|
||||||
i.Dependencies = append(i.Dependencies, checkDocker())
|
i.Dependencies = append(i.Dependencies, checkDocker())
|
||||||
|
Loading…
Reference in New Issue
Block a user