]> khamidou — GitHub mirrors - electron.git/commitdiff
mac: Fix linking error when running chromedriver
authorCheng Zhao <zcbenz@gmail.com>
Wed, 8 Apr 2015 14:05:33 +0000 (22:05 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 8 Apr 2015 14:05:33 +0000 (22:05 +0800)
script/create-dist.py

index e3ff67ed463acea9bb9b350ea21b16042a837489..a66795f42696c95602297a20bbb641e95755e247 100755 (executable)
@@ -124,6 +124,12 @@ def copy_chromedriver():
   # Fix the linking with boringssl.
   if TARGET_PLATFORM == 'linux':
     execute(['chrpath', '-r', '$ORIGIN', dest])
+  elif TARGET_PLATFORM == 'darwin':
+    shutil.copy2(os.path.join(CHROMIUM_DIR, 'libboringssl.dylib'), DIST_DIR)
+    execute(['install_name_tool', '-change',
+             '/usr/local/lib/libboringssl.dylib',
+             '@loader_path/libboringssl.dylib',
+             dest])
 
 
 def copy_license():