diff --git a/resources/constants.py b/resources/constants.py index d2ca2b881..fa766a2bf 100644 --- a/resources/constants.py +++ b/resources/constants.py @@ -156,9 +156,10 @@ class Constants: ## OS Settings self.os_support = 12.0 - self.detected_os = 0 # Major Kernel Version - self.detected_os_minor = 0 # Minor Kernel Version - self.detected_os_build = "" # OS Build + self.detected_os = 0 # Major Kernel Version + self.detected_os_minor = 0 # Minor Kernel Version + self.detected_os_build = "" # OS Build + self.detected_os_version = "" # OS Version ## Boot Volume Settings self.firewire_boot = False # Allow macOS FireWire Boot diff --git a/resources/main.py b/resources/main.py index c1925f4f0..2fa3ba218 100644 --- a/resources/main.py +++ b/resources/main.py @@ -27,6 +27,7 @@ class OpenCoreLegacyPatcher: self.constants.detected_os = os_probe.detect_kernel_major() self.constants.detected_os_minor = os_probe.detect_kernel_minor() self.constants.detected_os_build = os_probe.detect_os_build() + self.constants.detected_os_version = os_probe.detect_os_version() self.constants.computer = device_probe.Computer.probe() self.constants.recovery_status = utilities.check_recovery() self.computer = self.constants.computer