main.py: Publish OS Version

This commit is contained in:
Mykola Grymalyuk
2022-09-29 21:23:57 -06:00
parent da86344269
commit dd7470af98
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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