Commit fb48a057 authored by Donncha O'Cearbhaill's avatar Donncha O'Cearbhaill
Browse files

Working script to add TBB' to releases

parent 678bf6c6
...@@ -142,20 +142,23 @@ if __name__ == '__main__': ...@@ -142,20 +142,23 @@ if __name__ == '__main__':
# Erase old links if any and create a new empty one # Erase old links if any and create a new empty one
core.create_links_file('GitHub', readable_fp) core.create_links_file('GitHub', readable_fp)
print("Creating releases") print("Creating links file")
for asset in release.assets: for asset in release.assets:
filename = asset.download_url.split('/')[-1] url = ("{user}/{repo}/releases/download/"
osys, arch, lc = get_bundle_info(asset.download_url) "v{tag}/{file}".format(
osys, arch, lc = get_bundle_info(
sha256 = get_file_sha256( sha256 = get_file_sha256(
os.path.abspath(os.path.join(tb_path, filename)) os.path.abspath(os.path.join(tb_path,
) )
link = "{}${}${}$".format( link = "{}${}${}$".format(url, url + ".asc", sha256)
asset.download_url+".asc", print("Adding {}".format(url))
print("Adding {}".format(asset.download_url))
core.add_link('GitHub', osys, lc, link) core.add_link('GitHub', osys, lc, link)
print "Github links updated!" print "Github links updated!"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment