diff --git a/images/CMakeLists.txt b/images/CMakeLists.txt index efd6902bbd..a77c4d4d2d 100644 --- a/images/CMakeLists.txt +++ b/images/CMakeLists.txt @@ -14,14 +14,15 @@ install( ) # Icon +set(ICON_SIZE "348x348") install( FILES "icon.png" - DESTINATION "${MCPI_SHARE_DIR}/icons/hicolor/scalable/apps" + DESTINATION "${MCPI_SHARE_DIR}/icons/hicolor/${ICON_SIZE}/apps" RENAME "${MCPI_APP_ID}.png" ) # AppImage if(MCPI_IS_APPIMAGE_BUILD) - install_symlink("${MCPI_SHARE_DIR}/icons/hicolor/scalable/apps/${MCPI_APP_ID}.png" "${MCPI_APP_ID}.png") + install_symlink("${MCPI_SHARE_DIR}/icons/hicolor/${ICON_SIZE}/apps/${MCPI_APP_ID}.png" "${MCPI_APP_ID}.png") install_symlink("${MCPI_APP_ID}.png" ".DirIcon") endif()