Skip to content

Commit

Permalink
Merge pull request #205 from kloptops/main
Browse files Browse the repository at this point in the history
Fixed images.xxx.zip generation.
  • Loading branch information
kloptops authored Mar 22, 2024
2 parents 9790af4 + 379c21c commit 001bf50
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tools/build_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,9 @@ def port_info_id(port_status, max_info_count=100):
if port_zip.lower().startswith('images.'):
continue

if port_zip.lower() in ('images.zip', 'gameinfo.zip'):
continue

current_date = port_status[port_zip]['date_added']

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

last_date = current_date

# print(json.dumps(port_info_id_map, indent=2, sort_keys=True))

return port_info_id_map


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


def generate_ports_json(all_ports, port_status):
def generate_ports_json(all_ports, port_status, old_manifest, new_manifest):
ports_json_output = {
"ports": {},
"utils": {},
Expand All @@ -938,6 +943,9 @@ def generate_ports_json(all_ports, port_status):
port_status
)

## Jank :|
build_new_images_zip(old_manifest, new_manifest, port_status)

utils = []

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

build_new_images_zip(old_manifest, new_manifest, port_status)

build_gameinfo_zip(old_manifest, new_manifest)

generate_ports_json(all_ports, port_status)
generate_ports_json(all_ports, port_status, old_manifest, new_manifest)

errors = 0
warnings = 0
Expand Down

0 comments on commit 001bf50

Please sign in to comment.