mac:fix destination of comconst.json
This commit is contained in:
@@ -150,7 +150,7 @@ endif()
|
|||||||
|
|
||||||
if(NOT DEFINED BUNDLE_BASE_INSTALL_DIR)
|
if(NOT DEFINED BUNDLE_BASE_INSTALL_DIR)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/MacOS")
|
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BUILD_TYPE}")
|
||||||
else()
|
else()
|
||||||
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
|
set(BUNDLE_BASE_INSTALL_DIR "${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
|
||||||
endif()
|
endif()
|
||||||
@@ -266,7 +266,7 @@ if(NOT DEFINED APPDATADIR)
|
|||||||
if(UNIX)
|
if(UNIX)
|
||||||
if(BUILD_BUNDLE)
|
if(BUILD_BUNDLE)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(APPDATADIR "${DATADIR}/share/metainfo")
|
set(APPDATADIR "${DATADIR}/metainfo")
|
||||||
else()
|
else()
|
||||||
set(APPDATADIR "${DATADIR}/share/metainfo")
|
set(APPDATADIR "${DATADIR}/share/metainfo")
|
||||||
endif()
|
endif()
|
||||||
@@ -561,7 +561,11 @@ install(FILES RELEASE_NOTES.txt DESTINATION "${CREDITSDIR}" OPTIONAL)
|
|||||||
# The standard location for man pages in Linux is /usr/share/man
|
# The standard location for man pages in Linux is /usr/share/man
|
||||||
# Use "manpath" to see the search paths for man pages on your system.
|
# Use "manpath" to see the search paths for man pages on your system.
|
||||||
if(BUILD_BUNDLE)
|
if(BUILD_BUNDLE)
|
||||||
install(FILES "${PROJECT_SOURCE_DIR}/doc/manpage/rawtherapee.1" DESTINATION "${DATADIR}/share/man/man1")
|
if(APPLE)
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/doc/manpage/rawtherapee.1" DESTINATION "${DATADIR}/man/man1")
|
||||||
|
else()
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/doc/manpage/rawtherapee.1" DESTINATION "${DATADIR}/share/man/man1")
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
install(FILES "${PROJECT_SOURCE_DIR}/doc/manpage/rawtherapee.1" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1")
|
install(FILES "${PROJECT_SOURCE_DIR}/doc/manpage/rawtherapee.1" DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1")
|
||||||
endif()
|
endif()
|
||||||
|
@@ -196,7 +196,7 @@ target_link_libraries(rtengine rtexif
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
install(FILES ${CAMCONSTSFILE} DESTINATION "${CMAKE_INSTALL_PREFIX}/RawTherapee.app/Contents/Resources" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
||||||
else()
|
else()
|
||||||
install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
||||||
endif()
|
endif()
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
fNormal="$(tput sgr0)"
|
fNormal="$(tput sgr0)"
|
||||||
fBold="$(tput bold)"
|
fBold="$(tput bold)"
|
||||||
# Colors depend upon the user's terminal emulator color scheme - what is readable for you may be not readable for someone else.
|
# Colors depend upon the user's terminal emulator color scheme - what is readable for you may be not readable for someone else.
|
||||||
fMagenta="$(tput setaf 3)"
|
fMagenta="$(tput setaf 5)"
|
||||||
fRed="$(tput setaf 1)"
|
fRed="$(tput setaf 1)"
|
||||||
|
|
||||||
function msg {
|
function msg {
|
||||||
@@ -125,8 +125,6 @@ msg "Removing old files:"
|
|||||||
rm -rf "${APP}" *.dmg *.zip
|
rm -rf "${APP}" *.dmg *.zip
|
||||||
|
|
||||||
msg "Creating bundle container:"
|
msg "Creating bundle container:"
|
||||||
cd "${CMAKE_INSTALL_PREEFIX}"
|
|
||||||
install -d "${APP}"
|
|
||||||
install -d "${RESOURCES}"
|
install -d "${RESOURCES}"
|
||||||
install -d "${MACOS}"
|
install -d "${MACOS}"
|
||||||
install -d "${LIB}"
|
install -d "${LIB}"
|
||||||
@@ -278,7 +276,7 @@ for frameworklibs in "${LIB}"/* ; do
|
|||||||
codesign -v -s "${CODESIGNID}" -i com.rawtherapee.RawTherapee --force --verbose -o runtime --timestamp "${frameworklibs}"
|
codesign -v -s "${CODESIGNID}" -i com.rawtherapee.RawTherapee --force --verbose -o runtime --timestamp "${frameworklibs}"
|
||||||
done
|
done
|
||||||
codesign --timestamp --strict -v -s "${CODESIGNID}" -i com.rawtherapee.RawTherapee -o runtime --entitlements "${CMAKE_BUILD_TYPE}"/rt.entitlements "${APP}"
|
codesign --timestamp --strict -v -s "${CODESIGNID}" -i com.rawtherapee.RawTherapee -o runtime --entitlements "${CMAKE_BUILD_TYPE}"/rt.entitlements "${APP}"
|
||||||
spctl -a -vvvv ${APP}
|
spctl -a -vvvv "${APP}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Notarize the app
|
# Notarize the app
|
||||||
|
Reference in New Issue
Block a user