mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 12:00:15 +10:00
Add Tahoe icon, do now show multiple betas on latest installers listing
This commit is contained in:
@@ -806,6 +806,10 @@ class Constants:
|
|||||||
def icon_path_macos_sequoia(self):
|
def icon_path_macos_sequoia(self):
|
||||||
return self.icns_resource_path / Path("Sequoia.icns")
|
return self.icns_resource_path / Path("Sequoia.icns")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def icon_path_macos_tahoe(self):
|
||||||
|
return self.icns_resource_path / Path("Tahoe.icns")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def gui_path(self):
|
def gui_path(self):
|
||||||
return self.payload_path / Path("Icon/Resources.zip")
|
return self.payload_path / Path("Icon/Resources.zip")
|
||||||
@@ -840,6 +844,7 @@ class Constants:
|
|||||||
str(self.icon_path_macos_ventura),
|
str(self.icon_path_macos_ventura),
|
||||||
str(self.icon_path_macos_sonoma),
|
str(self.icon_path_macos_sonoma),
|
||||||
str(self.icon_path_macos_sequoia),
|
str(self.icon_path_macos_sequoia),
|
||||||
|
str(self.icon_path_macos_tahoe),
|
||||||
]
|
]
|
||||||
|
|
||||||
sbm_values = [
|
sbm_values = [
|
||||||
|
|||||||
@@ -249,6 +249,17 @@ class CatalogProducts:
|
|||||||
if installer in products_copy:
|
if installer in products_copy:
|
||||||
products_copy.pop(products_copy.index(installer))
|
products_copy.pop(products_copy.index(installer))
|
||||||
|
|
||||||
|
# Remove duplicates of the same version (i.e. multiple betas still in catalog), keep only latest
|
||||||
|
version_map = {}
|
||||||
|
for installer in products_copy:
|
||||||
|
version = installer.get("Version")
|
||||||
|
post_date = installer.get("PostDate")
|
||||||
|
if version is None:
|
||||||
|
continue
|
||||||
|
if version not in version_map or post_date > version_map[version].get("PostDate", ""):
|
||||||
|
version_map[version] = installer
|
||||||
|
|
||||||
|
products_copy = list(version_map.values())
|
||||||
|
|
||||||
# Remove EOL versions (older than n-3)
|
# Remove EOL versions (older than n-3)
|
||||||
for installer in products:
|
for installer in products:
|
||||||
|
|||||||
BIN
payloads/Icon/AppIcons/Tahoe.icns
Normal file
BIN
payloads/Icon/AppIcons/Tahoe.icns
Normal file
Binary file not shown.
Reference in New Issue
Block a user