mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-17 19:31:48 +03:00
4d33773cef
Added a script that renames the icons and patches the python file for nautilus.
25 lines
682 B
CMake
25 lines
682 B
CMake
|
|
# Install the Mac icon container into the Mac Bundle.
|
|
if( BUILD_OWNCLOUD_OSX_BUNDLE AND NOT BUILD_LIBRARIES_ONLY )
|
|
set (ICON_DIR ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/icons)
|
|
|
|
file(GLOB mac_icons "icns/*icns")
|
|
install(FILES ${mac_icons} DESTINATION ${ICON_DIR})
|
|
endif()
|
|
|
|
if( UNIX AND NOT APPLE )
|
|
|
|
SET(ICON_DIR ${DATADIR}/icons/hicolor)
|
|
|
|
FOREACH(size 128x128 16x16 256x256 32x32 48x48 64x64 72x72)
|
|
file(GLOB files "${size}/*.png")
|
|
FOREACH( file ${files} )
|
|
STRING(REPLACE "oC" ${APPLICATION_NAME} brandedName ${file})
|
|
install(FILES ${file} DESTINATION ${ICON_DIR}/${size}/apps RENAME ${brandedName})
|
|
ENDFOREACH(file)
|
|
ENDFOREACH(size)
|
|
|
|
endif()
|
|
|
|
|
|
|