Skip to content

Commit

Permalink
feat(fetch-releases.py): Init filter_mono_link func
Browse files Browse the repository at this point in the history
  • Loading branch information
haruki7049 committed Jul 17, 2024
1 parent 8bee1b2 commit f1a2fd7
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions fetch-releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ def gen_releases_list(versions: list, x86_64_linux_urls: list, aarch64_linux_url
return result


def filter_mono_link(urls: list) -> list:
result: list = []

for url in urls:
if "mono" in url:
result.append(url)


def filter_x86_64_linux_link(urls: list) -> list:
result: list = []

Expand Down Expand Up @@ -138,9 +146,10 @@ def filter_aarch64_linux_link(urls: list) -> list:
godot_info: list = get_all_releases(owner, repo)
versions: list = gen_list_of_versions(godot_info)
urls: list = gen_list_of_download_link(godot_info)
x86_64_linux_urls: list = filter_x86_64_linux_link(urls)
aarch64_linux_urls: list = filter_aarch64_linux_link(urls)
releases: dict = { "godot-bin": { "mono": gen_releases_list(versions, x86_64_linux_urls, aarch64_linux_urls ) } }
mono_urls: list = filter_mono_link(urls)
mono_x86_64_linux_urls: list = filter_x86_64_linux_link(mono_urls)
mono_aarch64_linux_urls: list = filter_aarch64_linux_link(mono_urls)
releases: dict = { "godot-bin": { "mono": gen_releases_list(versions, mono_x86_64_linux_urls, mono_aarch64_linux_urls ) } }

save_to_json(releases, destination)
print("Done!")

0 comments on commit f1a2fd7

Please sign in to comment.