From: Cheng Zhao Date: Fri, 7 Nov 2014 13:45:40 +0000 (+0800) Subject: Don't overwrite files on S3 X-Git-Tag: v0.19.2~22^2~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=45fb3ec41d5ae36595183ab0baa17811eabb289d;p=electron.git Don't overwrite files on S3 --- diff --git a/script/lib/util.py b/script/lib/util.py index 83c3e051..355fec02 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -183,6 +183,7 @@ def s3put(bucket, access_key, secret_key, prefix, key_prefix, files): '--secret_key', secret_key, '--prefix', prefix, '--key_prefix', key_prefix, + '--no_overwrite', '--grant', 'public-read' ] + files diff --git a/script/upload.py b/script/upload.py index 2ad7f5ff..edfa4c96 100755 --- a/script/upload.py +++ b/script/upload.py @@ -59,19 +59,19 @@ def main(): upload_atom_shell(github, release_id, os.path.join(DIST_DIR, CHROMEDRIVER_NAME)) - # Upload node's headers to S3. - bucket, access_key, secret_key = s3_config() - upload_node(bucket, access_key, secret_key, ATOM_SHELL_VERSION) - if args.publish_release: - # 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, ATOM_SHELL_VERSION) # Upload the SHASUMS.txt. execute([sys.executable, os.path.join(SOURCE_ROOT, 'script', 'upload-checksums.py'), '-v', ATOM_SHELL_VERSION]) + # Press the publish button. + publish_release(github, release_id) + def parse_args(): parser = argparse.ArgumentParser(description='upload distribution file')