Install resources into mac bundle.
This commit is contained in:
parent
2979b6ae84
commit
a821f5a505
|
@ -132,21 +132,18 @@ set_target_properties(clementine PROPERTIES
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
configure_file(
|
install(FILES ../dist/clementine.icns
|
||||||
../dist/clementine.icns
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
||||||
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/clementine.icns
|
install(FILES ../dist/qt.conf
|
||||||
COPY_ONLY
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
||||||
)
|
install(FILES ../dist/sparkle_pub.pem
|
||||||
configure_file(
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
||||||
../dist/qt.conf
|
|
||||||
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/qt.conf
|
install(DIRECTORY "${QT_QTGUI_LIBRARY_RELEASE}/Versions/Current/Resources/"
|
||||||
COPY_ONLY
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
||||||
)
|
install(DIRECTORY "${SPARKLE}/Versions/Current/Resources/"
|
||||||
configure_file(
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
||||||
../dist/sparkle_pub.pem
|
|
||||||
${PROJECT_BINARY_DIR}/clementine.app/Contents/Resources/sparkle_pub.pem
|
|
||||||
COPY_ONLY
|
|
||||||
)
|
|
||||||
add_custom_target(bundle
|
add_custom_target(bundle
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../macdeploy.py ${PROJECT_BINARY_DIR}/clementine.app -f
|
${CMAKE_CURRENT_SOURCE_DIR}/../macdeploy.py ${PROJECT_BINARY_DIR}/clementine.app -f
|
||||||
DEPENDS clementine
|
DEPENDS clementine
|
||||||
|
@ -155,19 +152,17 @@ if (APPLE)
|
||||||
macdeployqt ${PROJECT_BINARY_DIR}/clementine.app -dmg
|
macdeployqt ${PROJECT_BINARY_DIR}/clementine.app -dmg
|
||||||
DEPENDS clementine
|
DEPENDS clementine
|
||||||
)
|
)
|
||||||
|
else (APPLE)
|
||||||
|
install(TARGETS clementine
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES ../dist/clementine_64.png
|
||||||
|
DESTINATION share/icons/hicolor/64x64/apps/
|
||||||
|
RENAME application-x-clementine.png
|
||||||
|
)
|
||||||
|
|
||||||
|
install(FILES ../dist/clementine.desktop
|
||||||
|
DESTINATION share/applications
|
||||||
|
)
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
install(TARGETS clementine
|
|
||||||
BUNDLE DESTINATION bin
|
|
||||||
RUNTIME DESTINATION bin
|
|
||||||
)
|
|
||||||
|
|
||||||
install(FILES ../dist/clementine_64.png
|
|
||||||
DESTINATION share/icons/hicolor/64x64/apps/
|
|
||||||
RENAME application-x-clementine.png
|
|
||||||
)
|
|
||||||
|
|
||||||
install(FILES ../dist/clementine.desktop
|
|
||||||
DESTINATION share/applications
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue