mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07: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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user