From: Cheng Zhao Date: Wed, 6 Aug 2014 15:16:42 +0000 (+0800) Subject: Create .version after all files have been downloaded. X-Git-Tag: v0.15.3~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=15c31ad1ba2d934c088829bebba3378205bd4f39;p=electron.git Create .version after all files have been downloaded. --- diff --git a/script/update-external-binaries.py b/script/update-external-binaries.py index 8b7c15bb..c2f90730 100755 --- a/script/update-external-binaries.py +++ b/script/update-external-binaries.py @@ -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 = ''