From: Cheng Zhao Date: Thu, 24 Jul 2014 15:34:50 +0000 (+0800) Subject: Pass node version when calling upload-checksums. X-Git-Tag: v0.14.2~10 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6c866ea90971f030e23da221dbeff696ecef9573;p=electron.git Pass node version when calling upload-checksums. --- diff --git a/script/upload.py b/script/upload.py index 4cadf918..5f9f355e 100755 --- a/script/upload.py +++ b/script/upload.py @@ -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')