]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix search path of ffmpeg
authorCheng Zhao <zcbenz@gmail.com>
Tue, 11 Aug 2015 02:55:27 +0000 (10:55 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 11 Aug 2015 02:55:27 +0000 (10:55 +0800)
It is somehow set to @load_path by Chromium.

atom.gyp

index 99ae12452ac6bc14e9b91503973f6b1f21f6a7bd..cabb43d4f70a28bbf9ae24aa2573274467b21226 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
                 '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
               ],
             },
+            {
+              'postbuild_name': 'Fix path of ffmpeg',
+              'action': [
+                'install_name_tool',
+                '-change',
+                '@loader_path/libffmpeg.dylib',
+                '@rpath/libffmpeg.dylib',
+                '${BUILT_PRODUCTS_DIR}/<(product_name) Framework.framework/Versions/A/<(product_name) Framework',
+              ],
+            },
             {
               'postbuild_name': 'Add symlinks for framework subdirectories',
               'action': [