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
+1
View File
@@ -159,6 +159,7 @@ class Constants:
self.detected_os = 0 # Major Kernel Version self.detected_os = 0 # Major Kernel Version
self.detected_os_minor = 0 # Minor Kernel Version self.detected_os_minor = 0 # Minor Kernel Version
self.detected_os_build = "" # OS Build self.detected_os_build = "" # OS Build
self.detected_os_version = "" # OS Version
## Boot Volume Settings ## Boot Volume Settings
self.firewire_boot = False # Allow macOS FireWire Boot self.firewire_boot = False # Allow macOS FireWire Boot
+1
View File
@@ -27,6 +27,7 @@ class OpenCoreLegacyPatcher:
self.constants.detected_os = os_probe.detect_kernel_major() self.constants.detected_os = os_probe.detect_kernel_major()
self.constants.detected_os_minor = os_probe.detect_kernel_minor() self.constants.detected_os_minor = os_probe.detect_kernel_minor()
self.constants.detected_os_build = os_probe.detect_os_build() 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.computer = device_probe.Computer.probe()
self.constants.recovery_status = utilities.check_recovery() self.constants.recovery_status = utilities.check_recovery()
self.computer = self.constants.computer self.computer = self.constants.computer