aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Filipenkov <decapitator@ukr.net>2024-01-19 11:35:56 +0300
committerAndrey Filipenkov <decapitator@ukr.net>2024-01-19 13:58:26 +0300
commitc87c89e3831f303dc2f1306c69c75d8191eac15c (patch)
treef194f4a987e2f9b40b4dff5c59d05d90de1710ef
parent656307146a1a9fc7eb70ef66006488cf4999f2e8 (diff)
use only PlistBuddy to read bundle ID
-rwxr-xr-xtools/darwin/Support/copyframeworks-dylibs2frameworks.command6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/darwin/Support/copyframeworks-dylibs2frameworks.command b/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
index faa5a51a80..caca45b371 100755
--- a/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
+++ b/tools/darwin/Support/copyframeworks-dylibs2frameworks.command
@@ -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"