From 217b639597bf32a8231377a7f2870004bcaf447e Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 1 Aug 2016 21:59:25 +0900 Subject: [PATCH] Fix filename when uploading to github --- script/upload.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/upload.py b/script/upload.py index a8223afd2511..375b07500e92 100755 --- a/script/upload.py +++ b/script/upload.py @@ -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):