]> khamidou — GitHub mirrors - electron.git/commitdiff
Upload the index.json to S3
authorCheng Zhao <zcbenz@gmail.com>
Wed, 21 Jan 2015 06:09:30 +0000 (22:09 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 21 Jan 2015 06:09:30 +0000 (22:09 -0800)
script/upload.py

index 7841017ed11e34de3df42906c104bf58c4174cc0..ae7255110d001d582b182d2430913cb7018dbfbd 100755 (executable)
@@ -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')