]> khamidou — GitHub mirrors - electron.git/commitdiff
Pass node version when calling upload-checksums.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 24 Jul 2014 15:34:50 +0000 (23:34 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 24 Jul 2014 15:34:50 +0000 (23:34 +0800)
script/upload.py

index 4cadf918d029f7a059b5ec47fe44b62215ae38df..5f9f355e4ed40101f77024d5959d75073eb5c4a1 100755 (executable)
@@ -48,18 +48,20 @@ def main():
   release_id = create_or_get_release_draft(github, args.version)
   upload_atom_shell(github, release_id, os.path.join(DIST_DIR, DIST_NAME))
   upload_atom_shell(github, release_id, os.path.join(DIST_DIR, SYMBOLS_NAME))
-  if args.publish_release:
-    # Upload the SHASUMS.txt.
-    execute([sys.executable,
-             os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py')])
-
-    # Press the publish button.
-    publish_release(github, release_id)
 
   # Upload node's headers to S3.
   bucket, access_key, secret_key = s3_config()
   upload_node(bucket, access_key, secret_key, NODE_VERSION)
 
+  if args.publish_release:
+    # Press the publish button.
+    publish_release(github, release_id)
+
+    # Upload the SHASUMS.txt.
+    execute([sys.executable,
+             os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py'),
+             '-v', NODE_VERSION])
+
 
 def parse_args():
   parser = argparse.ArgumentParser(description='upload distribution file')