Fix filename when uploading to github
This commit is contained in:
parent
c943e4a61f
commit
217b639597
1 changed files with 2 additions and 3 deletions
|
@ -224,12 +224,11 @@ def upload_electron(github, release, file_path):
|
|||
pass
|
||||
|
||||
# Upload the file.
|
||||
name = os.path.dirname(file_path)
|
||||
with open(file_path, 'rb') as f:
|
||||
upload_io_to_github(github, release, name, f, 'application/zip')
|
||||
upload_io_to_github(github, release, filename, f, 'application/zip')
|
||||
|
||||
# Upload the checksum file.
|
||||
upload_sha256_checksum(release['tag'], file_path)
|
||||
upload_sha256_checksum(release['tag_name'], file_path)
|
||||
|
||||
|
||||
def upload_io_to_github(github, release, name, io, content_type):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue