]> khamidou — GitHub mirrors - electron.git/commitdiff
Upload to S3 with readable version.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 12 Aug 2013 07:01:05 +0000 (15:01 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 12 Aug 2013 07:01:05 +0000 (15:01 +0800)
script/lib/util.py
script/upload.py

index 88f6b7c1bc90ce1050d5db9d7921683577c2d978..5d4b8ba8c59e9e26c1d9983ed14b3c34e056efba 100644 (file)
@@ -87,3 +87,7 @@ def safe_mkdir(path):
   except OSError as e:
     if e.errno != errno.EEXIST:
       raise
+
+
+def get_atom_shell_version():
+  return subprocess.check_output(['git', 'describe', '--tags']).strip()
index df698932f0ab0aa226cc410b2944435006009fc1..7d99ad693c8dd1926207aab16df0c7d17131f510 100755 (executable)
@@ -51,10 +51,10 @@ def dist_newer_than_head():
 def upload():
   os.chdir(SOURCE_ROOT)
   bucket, access_key, secret_key = s3_config()
-  commit = subprocess.check_output(['git', 'describe', '--tags']).strip()
 
+  version = get_atom_shell_version()
   s3put(bucket, access_key, secret_key, SOURCE_ROOT,
-        'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip'))
+        'atom-shell/{0}'.format(version), glob.glob('atom-shell*.zip'))
 
   update_version(bucket, access_key, secret_key)