Add extra version logging to config.plist

This commit is contained in:
Mykola Grymalyuk
2021-03-01 13:49:03 -07:00
parent b7f895e940
commit 2dda8e9167
3 changed files with 5 additions and 4 deletions

View File

@@ -9,6 +9,7 @@ from pathlib import Path
class Constants:
def __init__(self):
self.patcher_version = "0.0.11"
self.opencore_commit = "cbd2fa3"
self.opencore_version = "0.6.7"
self.lilu_version = "1.5.1"
self.whatevergreen_version = "1.4.8"

View File

@@ -59,9 +59,9 @@ class BuildOpenCore:
self.config = plistlib.load(Path(self.constants.plist_path).open("rb"))
# Set revision in config
self.config["#Revision"]["Patcher-Version"] = self.constants.patcher_version
self.config["#Revision"]["OpenCore-Version"] = self.constants.opencore_version
self.config["#Revision"]["OpenCore-Version"] = f"{self.constants.opencore_version} {self.constants.opencore_commit}"
self.config["#Revision"]["Original-Model"] = self.model
self.config["#Revision"]["Patcher-Version"] = self.constants.patcher_version
for name, version, path, check in [
# Essential kexts

View File

@@ -4,12 +4,12 @@
<dict>
<key>#Revision</key>
<dict>
<key>Patcher-Version</key>
<string></string>
<key>OpenCore-Version</key>
<string></string>
<key>Original-Model</key>
<string></string>
<key>Patcher-Version</key>
<string></string>
</dict>
<key>ACPI</key>
<dict>