From 0851f1dffc2dd06dda5bde80341ddcbe6ad699cc Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 16 May 2022 19:16:55 +0200 Subject: [PATCH 1/2] Install more size variations on Linux --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe911868..06c6a362 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -557,6 +557,10 @@ if (NOT ANDROID) install(DIRECTORY papers DESTINATION ${CMAKE_INSTALL_DOCDIR}) install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DATADIR}/licenses/furnace) install(DIRECTORY demos DESTINATION ${CMAKE_INSTALL_DATADIR}/furnace) + foreach(num 16 32 64 128 256 512) + set(res ${num}x${num}) + install(FILES res/icon.iconset/icon_${res}.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${res}/apps) + endforeach() install(FILES res/logo.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/1024x1024/apps) endif() From 864e798686dbf5d03f1301db446808b854a7a397 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 16 May 2022 19:25:15 +0200 Subject: [PATCH 2/2] Add x2 icon variations as well --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06c6a362..c34d43da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -560,6 +560,7 @@ if (NOT ANDROID) foreach(num 16 32 64 128 256 512) set(res ${num}x${num}) install(FILES res/icon.iconset/icon_${res}.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${res}/apps) + install(FILES res/icon.iconset/icon_${res}@2x.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/${res}@2/apps) endforeach() install(FILES res/logo.png RENAME furnace.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/1024x1024/apps) endif()