mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-08-25 14:53:06 +00:00
Add GUI Support for OpCore Simplify (#512)
* Refactor OpCore-Simplify to GUI version * New ConfigEditor * Add requirement checks and installation in launchers * Add GitHub Actions workflow to generate manifest.json * Set compression level for asset * Skip .git and __pycache__ folders * Refactor update process to include integrity checker * Add SMBIOS model selection * Update README.md * Update to main branch
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
from Scripts.settings import Settings
|
||||
|
||||
settings = Settings()
|
||||
|
||||
INCLUDE_BETA = settings.get_include_beta_versions()
|
||||
|
||||
class macOSVersionInfo:
|
||||
def __init__(self, name, macos_version, release_status = "final"):
|
||||
self.name = name
|
||||
@@ -17,7 +23,7 @@ macos_versions = [
|
||||
macOSVersionInfo("Tahoe", "26")
|
||||
]
|
||||
|
||||
def get_latest_darwin_version(include_beta=True):
|
||||
def get_latest_darwin_version(include_beta=INCLUDE_BETA):
|
||||
for macos_version in macos_versions[::-1]:
|
||||
if include_beta:
|
||||
return "{}.{}.{}".format(macos_version.darwin_version, 99, 99)
|
||||
@@ -32,4 +38,4 @@ def get_macos_name_by_darwin(darwin_version):
|
||||
for data in macos_versions:
|
||||
if data.darwin_version == int(darwin_version[:2]):
|
||||
return "macOS {} {}{}".format(data.name, data.macos_version, "" if data.release_status == "final" else " (Beta)")
|
||||
return None
|
||||
return None
|
||||
Reference in New Issue
Block a user