Browse Source

Make video and audio tag work, fixes #31.

See more about this on:
https://github.com/brightray/brightray_example/commit/fdf20531bd8618d344447c5090f8594a62de1ed6
Cheng Zhao 11 years ago
parent
commit
6362e60a7b
2 changed files with 20 additions and 0 deletions
  1. 9 0
      atom.gyp
  2. 11 0
      tools/mac/create-framework-subdir-symlinks.sh

+ 9 - 0
atom.gyp

@@ -334,6 +334,15 @@
                 '<@(fix_framework_link_command)',
               ],
             },
+            {
+              'postbuild_name': 'Add symlinks for framework subdirectories',
+              'action': [
+                'tools/mac/create-framework-subdir-symlinks.sh',
+                '<(product_name)',
+                'Libraries',
+                'Frameworks',
+              ],
+            },
           ],
         },  # target framework
         {

+ 11 - 0
tools/mac/create-framework-subdir-symlinks.sh

@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+cd "${BUILT_PRODUCTS_DIR}/${1}.framework"
+shift
+
+while [ ! -z "${1}" ]; do
+  ln -sf Versions/Current/"${1}" "${1}"
+  shift
+done