Fix filename when uploading to github

This commit is contained in:
Cheng Zhao 2016-08-01 21:59:25 +09:00
parent c943e4a61f
commit 217b639597

View file

@ -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):