]> khamidou — GitHub mirrors - electron.git/commitdiff
Create .version after all files have been downloaded.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 6 Aug 2014 15:16:42 +0000 (23:16 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 6 Aug 2014 15:16:42 +0000 (23:16 +0800)
script/update-external-binaries.py

index 8b7c15bbd36671e0cba193e3cc4a62b1ff2c38e9..c2f907306458f962df7a432656da2b1f296d06b1 100755 (executable)
@@ -23,9 +23,6 @@ def main():
   rm_rf('external_binaries')
   safe_mkdir('external_binaries')
 
-  with open(version_file, 'w') as f:
-    f.write(VERSION)
-
   if sys.platform == 'darwin':
     download_and_unzip('Mantle')
     download_and_unzip('ReactiveCocoa')
@@ -34,6 +31,9 @@ def main():
     download_and_unzip('directxsdk')
     download_and_unzip('vs2012_crt')
 
+  with open(version_file, 'w') as f:
+    f.write(VERSION)
+
 
 def is_updated(version_file, version):
   existing_version = ''