diff options
| author | Erik Kundiman <erik@megapahit.org> | 2024-09-27 21:50:23 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2024-09-27 22:15:40 +0800 | 
| commit | cc2263847a4eca297973fa0e68d77ba7033cf336 (patch) | |
| tree | a65feb53f53485f6e4037858e326372027013526 /indra | |
| parent | 82b0fe56709516125c3e8d41fbd46161a8c0cc4a (diff) | |
Codesign message & fixup_bundle after links creation
to avoid verbose warnings of non-existent embedded items.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/FixBundle.cmake.in | 5 | ||||
| -rw-r--r-- | indra/newview/FixPackage.cmake.in | 5 | 
2 files changed, 6 insertions, 4 deletions
| diff --git a/indra/newview/FixBundle.cmake.in b/indra/newview/FixBundle.cmake.in index 81520d1781..bf3a36b5d0 100644 --- a/indra/newview/FixBundle.cmake.in +++ b/indra/newview/FixBundle.cmake.in @@ -4,8 +4,6 @@ set(dirs      /opt/local/lib     ) -fixup_bundle(${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/MacOS/${VIEWER_CHANNEL} "" "${dirs}") -  file(CREATE_LINK      "../../../../Frameworks/libnghttp2.14.dylib"      "${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/libnghttp2.14.dylib" @@ -132,6 +130,8 @@ file(CREATE_LINK      SYMBOLIC      ) +fixup_bundle(${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/MacOS/${VIEWER_CHANNEL} "" "${dirs}") +  file(CHMOD      "${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/DullahanHelper.app/Contents/MacOS/DullahanHelper"      "${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/DullahanHelper (GPU).app/Contents/MacOS/DullahanHelper (GPU)" @@ -272,6 +272,7 @@ execute_process(      ERROR_QUIET      ) +message("By default, the situation is assumed to be the strictest, an Apple Silicon Mac with the default security settings. Running a native self-built viewer on it without correct codesigning would lead to a crash. Also, codesigning requires administrative access. If you believe you're not in such a situation, you can remove the sudos in this file.")  execute_process(      COMMAND sudo codesign -f -s ${SIGNING_IDENTITY} --timestamp -o runtime --runtime-version ${CMAKE_OSX_DEPLOYMENT_TARGET}          Frameworks/Chromium\ Embedded\ Framework.framework/Libraries/libEGL.dylib diff --git a/indra/newview/FixPackage.cmake.in b/indra/newview/FixPackage.cmake.in index f029c68fd1..2dec79c59b 100644 --- a/indra/newview/FixPackage.cmake.in +++ b/indra/newview/FixPackage.cmake.in @@ -4,8 +4,6 @@ set(dirs      /opt/local/lib     ) -fixup_bundle(${CMAKE_CACHEFILE_DIR}/_CPack_Packages/${CMAKE_SYSTEM_NAME}/Bundle/${CPACK_BUNDLE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}/${CPACK_BUNDLE_NAME}.app/Contents/MacOS/${CPACK_BUNDLE_NAME} "" "${dirs}") -  file(CREATE_LINK      "../../../../Frameworks/libnghttp2.14.dylib"      "${CMAKE_CACHEFILE_DIR}/_CPack_Packages/${CMAKE_SYSTEM_NAME}/Bundle/${CPACK_BUNDLE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}/${CPACK_BUNDLE_NAME}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/libnghttp2.14.dylib" @@ -132,6 +130,8 @@ file(CREATE_LINK      SYMBOLIC      ) +fixup_bundle(${CMAKE_CACHEFILE_DIR}/_CPack_Packages/${CMAKE_SYSTEM_NAME}/Bundle/${CPACK_BUNDLE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}/${CPACK_BUNDLE_NAME}.app/Contents/MacOS/${CPACK_BUNDLE_NAME} "" "${dirs}") +  file(CHMOD      "${CMAKE_CACHEFILE_DIR}/_CPack_Packages/${CMAKE_SYSTEM_NAME}/Bundle/${CPACK_BUNDLE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}/${CPACK_BUNDLE_NAME}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/DullahanHelper.app/Contents/MacOS/DullahanHelper"      "${CMAKE_CACHEFILE_DIR}/_CPack_Packages/${CMAKE_SYSTEM_NAME}/Bundle/${CPACK_BUNDLE_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}/${CPACK_BUNDLE_NAME}.app/Contents/Resources/SLPlugin.app/Contents/Frameworks/DullahanHelper (GPU).app/Contents/MacOS/DullahanHelper (GPU)" @@ -272,6 +272,7 @@ execute_process(      ERROR_QUIET      ) +message("By default, the situation is assumed to be the strictest, an Apple Silicon Mac with the default security settings. Running a native self-built viewer on it without correct codesigning would lead to a crash. Also, codesigning requires administrative access. If you believe you're not in such a situation, you can remove the sudos in this file.")  execute_process(      COMMAND sudo codesign -f -s ${SIGNING_IDENTITY} --timestamp -o runtime --runtime-version ${CMAKE_OSX_DEPLOYMENT_TARGET}          Frameworks/Chromium\ Embedded\ Framework.framework/Libraries/libEGL.dylib | 
