Add NightShiftEnabler support

Closes https://github.com/dortania/Opencore-Legacy-Patcher/issues/80
This commit is contained in:
Mykola Grymalyuk
2021-03-06 15:22:47 -07:00
parent 1af5182560
commit a7ebf72d1b
7 changed files with 42 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ class Constants:
self.piixata_version = "1.0.0"
self.backlight_version = "1.0.0"
self.cpufriend_version = "1.2.3"
self.nightshift_version = "1.1.0"
# Get resource path
self.current_path = Path(__file__).parent.parent.resolve()
@@ -91,6 +92,8 @@ class Constants:
def backlight_path(self): return self.payload_kexts_path / Path(f"Misc/AppleBacklightFixup-v{self.backlight_version}.zip")
@property
def cpufriend_path(self): return self.payload_kexts_path / Path(f"Acidanthera/CPUFriend-v{self.cpufriend_version}.zip")
@property
def nightshift_path(self): return self.payload_kexts_path / Path(f"Misc/NightShiftEnabler-v{self.nightshift_version}.zip")
# Build Location
@property