mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 22:50:51 +10:00
Add extra version logging to config.plist
This commit is contained in:
@@ -9,6 +9,7 @@ from pathlib import Path
|
|||||||
class Constants:
|
class Constants:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.patcher_version = "0.0.11"
|
self.patcher_version = "0.0.11"
|
||||||
|
self.opencore_commit = "cbd2fa3"
|
||||||
self.opencore_version = "0.6.7"
|
self.opencore_version = "0.6.7"
|
||||||
self.lilu_version = "1.5.1"
|
self.lilu_version = "1.5.1"
|
||||||
self.whatevergreen_version = "1.4.8"
|
self.whatevergreen_version = "1.4.8"
|
||||||
|
|||||||
+2
-2
@@ -59,9 +59,9 @@ class BuildOpenCore:
|
|||||||
self.config = plistlib.load(Path(self.constants.plist_path).open("rb"))
|
self.config = plistlib.load(Path(self.constants.plist_path).open("rb"))
|
||||||
|
|
||||||
# Set revision in config
|
# Set revision in config
|
||||||
self.config["#Revision"]["Patcher-Version"] = self.constants.patcher_version
|
self.config["#Revision"]["OpenCore-Version"] = f"{self.constants.opencore_version} {self.constants.opencore_commit}"
|
||||||
self.config["#Revision"]["OpenCore-Version"] = self.constants.opencore_version
|
|
||||||
self.config["#Revision"]["Original-Model"] = self.model
|
self.config["#Revision"]["Original-Model"] = self.model
|
||||||
|
self.config["#Revision"]["Patcher-Version"] = self.constants.patcher_version
|
||||||
|
|
||||||
for name, version, path, check in [
|
for name, version, path, check in [
|
||||||
# Essential kexts
|
# Essential kexts
|
||||||
|
|||||||
@@ -4,12 +4,12 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>#Revision</key>
|
<key>#Revision</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>Patcher-Version</key>
|
|
||||||
<string></string>
|
|
||||||
<key>OpenCore-Version</key>
|
<key>OpenCore-Version</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>Original-Model</key>
|
<key>Original-Model</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
|
<key>Patcher-Version</key>
|
||||||
|
<string></string>
|
||||||
</dict>
|
</dict>
|
||||||
<key>ACPI</key>
|
<key>ACPI</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
|||||||
Reference in New Issue
Block a user