From de36477ddc80f0cd5a3c083c1ff8bd7852cdf467 Mon Sep 17 00:00:00 2001 From: stffabi Date: Thu, 28 Jul 2022 21:43:48 +0200 Subject: [PATCH] [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 --- v2/internal/system/operatingsystem/os_darwin.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v2/internal/system/operatingsystem/os_darwin.go b/v2/internal/system/operatingsystem/os_darwin.go index adc808773..8083e1aed 100644 --- a/v2/internal/system/operatingsystem/os_darwin.go +++ b/v2/internal/system/operatingsystem/os_darwin.go @@ -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 }