From: Cheng Zhao Date: Wed, 21 Jan 2015 06:09:30 +0000 (-0800) Subject: Upload the index.json to S3 X-Git-Tag: v0.20.8~8^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=7b621262eaf3ad5d4cc02d29a706a77e1d2bafb0;p=electron.git Upload the index.json to S3 --- diff --git a/script/upload.py b/script/upload.py index 7841017e..ae725511 100755 --- a/script/upload.py +++ b/script/upload.py @@ -190,6 +190,14 @@ def upload_node(bucket, access_key, secret_key, version): s3put(bucket, access_key, secret_key, OUT_DIR, 'atom-shell/dist/{0}'.format(version), [node_lib]) + # Upload the index.json + atom_shell = os.path.join(OUT_DIR, 'atom.exe') + index_json = os.path.join(OUT_DIR, 'index.json') + execute([atom_shell, + os.path.join(SOURCE_ROOT, 'script', 'dump-version-info.js'), + index_json]) + s3put(bucket, access_key, secret_key, OUT_DIR, 'atom-shell', [index_json]) + def auth_token(): token = os.environ.get('ATOM_SHELL_GITHUB_TOKEN')