Skip to content

Commit 001bf50

Browse files
authored
Merge pull request #205 from kloptops/main
Fixed images.xxx.zip generation.
2 parents 9790af4 + 379c21c commit 001bf50

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tools/build_release.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,9 @@ def port_info_id(port_status, max_info_count=100):
561561
if port_zip.lower().startswith('images.'):
562562
continue
563563

564+
if port_zip.lower() in ('images.zip', 'gameinfo.zip'):
565+
continue
566+
564567
current_date = port_status[port_zip]['date_added']
565568

566569
if (port_info_ids[info_id] >= max_info_count) and (last_date != current_date):
@@ -575,6 +578,8 @@ def port_info_id(port_status, max_info_count=100):
575578

576579
last_date = current_date
577580

581+
# print(json.dumps(port_info_id_map, indent=2, sort_keys=True))
582+
578583
return port_info_id_map
579584

580585

@@ -921,7 +926,7 @@ def port_diff(port_name, old_manifest, new_manifest):
921926
print(f" - Added {file_name}")
922927

923928

924-
def generate_ports_json(all_ports, port_status):
929+
def generate_ports_json(all_ports, port_status, old_manifest, new_manifest):
925930
ports_json_output = {
926931
"ports": {},
927932
"utils": {},
@@ -938,6 +943,9 @@ def generate_ports_json(all_ports, port_status):
938943
port_status
939944
)
940945

946+
## Jank :|
947+
build_new_images_zip(old_manifest, new_manifest, port_status)
948+
941949
utils = []
942950

943951
if (RELEASE_DIR / 'PortMaster.zip').is_file():
@@ -1153,11 +1161,9 @@ def main(argv):
11531161
if '--do-check' not in argv:
11541162
build_images_zip(old_manifest, new_manifest)
11551163

1156-
build_new_images_zip(old_manifest, new_manifest, port_status)
1157-
11581164
build_gameinfo_zip(old_manifest, new_manifest)
11591165

1160-
generate_ports_json(all_ports, port_status)
1166+
generate_ports_json(all_ports, port_status, old_manifest, new_manifest)
11611167

11621168
errors = 0
11631169
warnings = 0

0 commit comments

Comments
 (0)