Skip to content

Commit

Permalink
feat: Init gen_list_of_download_link func
Browse files Browse the repository at this point in the history
  • Loading branch information
haruki7049 committed Jul 17, 2024
1 parent 54272cf commit d8c73d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fetch-releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ def gen_nix_hash(url: str) -> str:
"""
result = subprocess.run(["nix-prefetch-url", url], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
return result.stdout.replace("\n", "")


def gen_list_of_download_link(sources: dict) -> list:
result: list = []

for version in sources:
for assets in version["assets"]:
result.append(assets["browser_download_url"])

return result

0 comments on commit d8c73d4

Please sign in to comment.