Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
fb48a057
Commit
fb48a057
authored
Feb 06, 2016
by
Donncha O'Cearbhaill
Browse files
Working script to add TBB' to releases
parent
678bf6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
upload/bundles2github.py
View file @
fb48a057
...
...
@@ -142,20 +142,23 @@ if __name__ == '__main__':
# Erase old links if any and create a new empty one
core
.
create_links_file
(
'GitHub'
,
readable_fp
)
print
(
"Creating
releases
"
)
print
(
"Creating
links file
"
)
for
asset
in
release
.
assets
:
filename
=
asset
.
download_url
.
split
(
'/'
)[
-
1
]
osys
,
arch
,
lc
=
get_bundle_info
(
asset
.
download_url
)
url
=
(
"https://github.com/{user}/{repo}/releases/download/"
"v{tag}/{file}"
.
format
(
user
=
github_user
,
repo
=
github_repo
,
tag
=
version
,
file
=
asset
.
name
,
))
osys
,
arch
,
lc
=
get_bundle_info
(
asset
.
name
)
sha256
=
get_file_sha256
(
os
.
path
.
abspath
(
os
.
path
.
join
(
tb_path
,
file
name
))
os
.
path
.
abspath
(
os
.
path
.
join
(
tb_path
,
asset
.
name
))
)
link
=
"{}${}${}$"
.
format
(
asset
.
download_url
,
asset
.
download_url
+
".asc"
,
sha256
,
)
print
(
"Adding {}"
.
format
(
asset
.
download_url
))
link
=
"{}${}${}$"
.
format
(
url
,
url
+
".asc"
,
sha256
)
print
(
"Adding {}"
.
format
(
url
))
core
.
add_link
(
'GitHub'
,
osys
,
lc
,
link
)
print
"Github links updated!"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment