mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 12:00:15 +10:00
Switch to bug fix build
0.5.0 will be held off for Ventura support
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# OpenCore Legacy Patcher changelog
|
# OpenCore Legacy Patcher changelog
|
||||||
|
|
||||||
## 0.5.0
|
## 0.4.7
|
||||||
|
- Fix crashing on defaults parsing
|
||||||
|
|
||||||
## 0.4.6
|
## 0.4.6
|
||||||
- Fix Bluetooth support in 12.4 Release
|
- Fix Bluetooth support in 12.4 Release
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ from data import os_data
|
|||||||
class Constants:
|
class Constants:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# Patcher Versioning
|
# Patcher Versioning
|
||||||
self.patcher_version = "0.5.0" # OpenCore-Legacy-Patcher
|
self.patcher_version = "0.4.7" # OpenCore-Legacy-Patcher
|
||||||
self.patcher_support_pkg_version = "0.5.1" # PatcherSupportPkg
|
self.patcher_support_pkg_version = "0.5.1" # PatcherSupportPkg
|
||||||
self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/"
|
self.url_patcher_support_pkg = "https://github.com/dortania/PatcherSupportPkg/releases/download/"
|
||||||
self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/"
|
self.nightly_url_patcher_support_pkg = "https://nightly.link/dortania/PatcherSupportPkg/workflows/build/master/"
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ class global_settings:
|
|||||||
def generate_settings_file(self):
|
def generate_settings_file(self):
|
||||||
if Path(self.global_settings_plist).exists():
|
if Path(self.global_settings_plist).exists():
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb"))
|
plistlib.dump({"Developed by Dortania": True,}, Path(self.global_settings_plist).open("wb"))
|
||||||
|
except PermissionError:
|
||||||
|
print("- Permission error: Unable to write to global settings file")
|
||||||
|
|
||||||
def read_property(self, property_name):
|
def read_property(self, property_name):
|
||||||
if Path(self.global_settings_plist).exists():
|
if Path(self.global_settings_plist).exists():
|
||||||
@@ -31,7 +34,10 @@ class global_settings:
|
|||||||
if Path(self.global_settings_plist).exists():
|
if Path(self.global_settings_plist).exists():
|
||||||
plist = plistlib.load(Path(self.global_settings_plist).open("rb"))
|
plist = plistlib.load(Path(self.global_settings_plist).open("rb"))
|
||||||
plist[property_name] = property_value
|
plist[property_name] = property_value
|
||||||
|
try:
|
||||||
plistlib.dump(plist, Path(self.global_settings_plist).open("wb"))
|
plistlib.dump(plist, Path(self.global_settings_plist).open("wb"))
|
||||||
|
except PermissionError:
|
||||||
|
print("- Failed to write to global settings file")
|
||||||
|
|
||||||
|
|
||||||
def convert_defaults_to_global_settings(self):
|
def convert_defaults_to_global_settings(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user