mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 14:40:52 +10:00
Check Permissions erroring
This commit is contained in:
+12
-8
@@ -23,18 +23,22 @@ def list_local_macOS_installers():
|
|||||||
app_sdk = plist["DTSDKBuild"]
|
app_sdk = plist["DTSDKBuild"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
app_sdk = "Unknown"
|
app_sdk = "Unknown"
|
||||||
application_list.update({
|
# Check if App Version is Catalina or older
|
||||||
application: {
|
if not app_version.startswith("10."):
|
||||||
"Short Name": clean_name,
|
application_list.update({
|
||||||
"Version": app_version,
|
application: {
|
||||||
"Build": app_sdk,
|
"Short Name": clean_name,
|
||||||
"Path": application,
|
"Version": app_version,
|
||||||
}
|
"Build": app_sdk,
|
||||||
})
|
"Path": application,
|
||||||
|
}
|
||||||
|
})
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
pass
|
pass
|
||||||
|
# Sort Applications by version
|
||||||
|
application_list = {k: v for k, v in sorted(application_list.items(), key=lambda item: item[1]["Version"])}
|
||||||
return application_list
|
return application_list
|
||||||
|
|
||||||
def create_installer(installer_path, volume_name):
|
def create_installer(installer_path, volume_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user