aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2024-01-20 12:19:37 +0300
committerGitHub <noreply@github.com>2024-01-20 12:19:37 +0300
commitec5fff32835210b9c8bc1b74ab57681ca895d7b6 (patch)
treee9b334db9c5ed53ddb51f8a9406081cce4fd66d5 /tools
parentf0969a56c86fd2ae31a60364bd04edc8a50a3f99 (diff)
parente471352910a6ad447a484f55d32b5d248bea142f (diff)
Merge pull request #24540 from kambala-decapitator/nexus-tvos-framework-gen
[backport][tvOS] fix assigning bundle ID to the generated frameworks
Diffstat (limited to 'tools')
-rwxr-xr-xtools/darwin/Support/copyframeworks-dylibs2frameworks.command8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/darwin/Support/copyframeworks-dylibs2frameworks.command b/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
index faa5a51a80..a606f44abc 100755
--- a/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
+++ b/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
@@ -17,7 +17,7 @@
# along with MrMC; see the file COPYING. If not, see
# <http://www.gnu.org/licenses/>.
-#set -x
+set -x
TARGET_CONTENTS="${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}"
TARGET_FRAMEWORKS=$TARGET_BUILD_DIR/$FRAMEWORKS_FOLDER_PATH
@@ -47,11 +47,7 @@ function convert2framework
install_name_tool -change @executable_path/Frameworks/${DYLIB_BASENAME} @executable_path/Frameworks/${DYLIB_LIBNAME}.framework/${DYLIB_LIBNAME} ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${EXECUTABLE_NAME}
install_name_tool -add_rpath @executable_path/Frameworks/${DYLIB_LIBNAME}.framework ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/${EXECUTABLE_NAME}
- BUNDLEID=`mdls -raw -name kMDItemCFBundleIdentifier ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}`
- if [ "${BUNDLEID}" == "(null)" ] ; then
- BUNDLEID=`/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/Info.plist`
- fi
-
+ BUNDLEID=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' ${TARGET_BUILD_DIR}/${EXECUTABLE_FOLDER_PATH}/Info.plist)
FRAMEWORKBUNDLEID="${BUNDLEID}.framework.${DYLIB_LIBNAME}"
echo "CFBundleIdentifier is ${FRAMEWORKBUNDLEID}"
echo "convert ${DYLIB_BASENAME} to ${DYLIB_LIBNAME}.framework"