mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v2, darwin] Use kern.osversion for os id in doctor (#1673)
It seems like kern.osrevision is always 199506 since several years and kern.osversion maps to the official documented build id. Example: MacOS 12.5 with ID 21G72
This commit is contained in:
parent
a224236b22
commit
de36477ddc
1 changed files with 3 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
package operatingsystem
|
||||
|
||||
import (
|
||||
"github.com/wailsapp/wails/v2/internal/shell"
|
||||
"strings"
|
||||
|
||||
"github.com/wailsapp/wails/v2/internal/shell"
|
||||
)
|
||||
|
||||
func getSysctlValue(key string) (string, error) {
|
||||
|
|
@ -26,7 +27,7 @@ func platformInfo() (*OS, error) {
|
|||
return nil, err
|
||||
}
|
||||
result.Version = version
|
||||
ID, err := getSysctlValue("kern.osrevision")
|
||||
ID, err := getSysctlValue("kern.osversion")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue