mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 03:40:45 +08:00
Doctor working for Windows
This commit is contained in:
parent
4b9f6c4fb1
commit
bf36b6a59d
@ -19,11 +19,15 @@ func platformInfo() (*OS, error) {
|
|||||||
|
|
||||||
defer key.Close()
|
defer key.Close()
|
||||||
|
|
||||||
fmt.Printf("%+v\n", key)
|
|
||||||
|
|
||||||
// Ignore errors as it isn't a showstopper
|
// Ignore errors as it isn't a showstopper
|
||||||
productName, _, _ := key.GetStringValue("ProductName")
|
productName, _, _ := key.GetStringValue("ProductName")
|
||||||
fmt.Println(productName)
|
currentBuild, _, _ := key.GetStringValue("CurrentBuildNumber")
|
||||||
|
displayVersion, _, _ := key.GetStringValue("DisplayVersion")
|
||||||
|
releaseId, _, _ := key.GetStringValue("ReleaseId")
|
||||||
|
|
||||||
return nil, nil
|
result.Name = productName
|
||||||
|
result.Version = fmt.Sprintf("%s (Build: %s)", releaseId, currentBuild)
|
||||||
|
result.ID = displayVersion
|
||||||
|
|
||||||
|
return &result, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user