Automatically add versioning to config.plist

This commit is contained in:
Mykola Grymalyuk
2021-03-01 13:37:49 -07:00
parent 655eac32b1
commit b7f895e940
4 changed files with 37 additions and 24 deletions
+1
View File
@@ -8,6 +8,7 @@ from pathlib import Path
class Constants:
def __init__(self):
self.patcher_version = "0.0.11"
self.opencore_version = "0.6.7"
self.lilu_version = "1.5.1"
self.whatevergreen_version = "1.4.8"
+5
View File
@@ -58,6 +58,11 @@ class BuildOpenCore:
shutil.copy(self.constants.plist_template, self.constants.oc_folder)
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"]["Original-Model"] = self.model
for name, version, path, check in [
# Essential kexts
("Lilu.kext", self.constants.lilu_version, self.constants.lilu_path, lambda: True),