]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix creating empty chromedriver archive.
authorCheng Zhao <zcbenz@gmail.com>
Sat, 20 Sep 2014 15:24:10 +0000 (15:24 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 20 Sep 2014 15:29:46 +0000 (15:29 +0000)
script/create-dist.py

index 4e24ab231fd047a279956be7e7aa05b652fb73c4..e623b088c6bd02a6b6b61e21edf9a5caebd1e5e4 100755 (executable)
@@ -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():