From 6362e60a7b638e5668395a135cf4fbab7d9d0e67 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 26 Jun 2013 10:31:32 +0800 Subject: [PATCH] Make video and audio tag work, fixes #31. See more about this on: https://github.com/brightray/brightray_example/commit/fdf20531bd8618d344447c5090f8594a62de1ed6 --- atom.gyp | 9 +++++++++ tools/mac/create-framework-subdir-symlinks.sh | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100755 tools/mac/create-framework-subdir-symlinks.sh diff --git a/atom.gyp b/atom.gyp index 9430bb74..74b8567f 100644 --- a/atom.gyp +++ b/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 { diff --git a/tools/mac/create-framework-subdir-symlinks.sh b/tools/mac/create-framework-subdir-symlinks.sh new file mode 100755 index 00000000..bfea1b3a --- /dev/null +++ b/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 -- 2.43.0