From: Cheng Zhao Date: Sat, 20 Sep 2014 15:24:10 +0000 (+0000) Subject: Fix creating empty chromedriver archive. X-Git-Tag: v0.17.0~12 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2768b1ff643fccb7205c43892d4eb0c747ac81bd;p=electron.git Fix creating empty chromedriver archive. --- diff --git a/script/create-dist.py b/script/create-dist.py index 4e24ab23..e623b088 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -147,6 +147,10 @@ def copy_binaries(): def copy_chromedriver(): build = os.path.join(SOURCE_ROOT, 'script', 'build.py') execute([sys.executable, build, '-c', 'Release', '-t', 'copy_chromedriver']) + binary = 'chromedriver' + if TARGET_PLATFORM == 'win32': + binary += '.exe' + shutil.copy2(os.path.join(OUT_DIR, binary), DIST_DIR) def copy_headers():