Browse Source

Fix filename when uploading to github

Cheng Zhao 8 years ago
parent
commit
217b639597
1 changed files with 2 additions and 3 deletions
  1. 2 3
      script/upload.py

+ 2 - 3
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):