Skip to content

Commit

Permalink
manifest.py: Publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Aug 28, 2024
1 parent 333baad commit 2955039
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions metal_libraries/ipsw/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def _generate_item_manifest(self) -> dict:
version = version.split(" ")[0]
manifest = {
"build": self._latest_ipsw["Build"],
"version": version,
"date": self._latest_ipsw['Date'],
"sha1sum": self._latest_ipsw["Hash"],
"name": f"MetallibSupportPkg {self._latest_ipsw['Version']} build {self._latest_ipsw['Build']}",
Expand Down Expand Up @@ -75,6 +76,12 @@ def update_manifest(self) -> None:
# Add new item
current_manifest.append(data)

# Temp hack: Fix '24A5327a' missing 'version' property
# Set to '15.0'
for item in current_manifest:
if item["build"] == "24A5327a":
item["version"] = "15.0"

# Sort by date
current_manifest = sorted(current_manifest, key=lambda x: datetime.strptime(x["date"], "%Y-%m-%d"), reverse=True)

Expand Down

0 comments on commit 2955039

Please sign in to comment.