@@ -184,24 +184,6 @@ def build(output_path: Path, dolphin_jar: Path) -> str:
184184 pack .writestr (f"overrides/{ relative } " , payload )
185185 return version_id
186186
187-
188- def check_update_metadata (pack : zipfile .ZipFile , files : list [dict ]) -> None :
189- """Prism only offers Ornithe updates when the mod index records that loader."""
190- indexes = [pack .read (name ).decode () for name in pack .namelist () if name .endswith (".pw.toml" )]
191- for entry in files :
192- filename = entry ["path" ].rsplit ("/" , 1 )[- 1 ]
193- matches = [text for text in indexes if f'filename = "{ filename } "' in text ]
194- if len (matches ) != 1 :
195- raise SystemExit (f"Expected one Prism metadata file for { filename } , found { len (matches )} " )
196- text = matches [0 ]
197- if entry ["hashes" ]["sha512" ] not in text or "[update.modrinth]" not in text :
198- raise SystemExit (f"Prism metadata for { filename } is missing the Modrinth hash or project" )
199- if entry ["path" ].startswith ("mods/" ) and '"ornithe"' not in text :
200- raise SystemExit (f"Prism metadata for { filename } does not record the Ornithe loader" )
201- if "x-prismlauncher-lock-update = true" in text :
202- raise SystemExit (f"Prism metadata for { filename } locks updates" )
203-
204-
205187def check_pack (path : Path , dolphin_jar : Path ) -> None :
206188 with zipfile .ZipFile (path ) as pack :
207189 names = pack .namelist ()
@@ -222,7 +204,6 @@ def check_pack(path: Path, dolphin_jar: Path) -> None:
222204 expected_files = modrinth_files ()
223205 if index ["files" ] != expected_files :
224206 raise SystemExit ("Index files do not match pack/modrinth-files.json" )
225- check_update_metadata (pack , expected_files )
226207 modrinth_paths = {f"overrides/{ entry ['path' ]} " for entry in expected_files }
227208 if any (name in modrinth_paths for name in names ):
228209 raise SystemExit ("A Modrinth download is also bundled in overrides" )
0 commit comments