Commit 9bcdc70c authored by Ronan's avatar Ronan

feat(CMakeLists.txt): do not deal with custom app_logo, replace it directly

parent d55dc5ef
......@@ -433,14 +433,7 @@ if (UNIX AND NOT APPLE)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE_NAME}.desktop"
DESTINATION "${CMAKE_INSTALL_DATADIR}/applications"
)
if (EXISTS "${ASSETS_DIR}/images/custom/app_logo.svg")
set(APP_LOGO_PATH "${ASSETS_DIR}/images/custom/app_logo.svg")
else ()
set(APP_LOGO_PATH "${ASSETS_DIR}/images/app_logo.svg")
endif ()
install(FILES ${APP_LOGO_PATH}
install(FILES "${ASSETS_DIR}/images/app_logo.svg"
DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/"
RENAME "${EXECUTABLE_NAME}.svg"
)
......
#!/usr/bin/env bash
if [ -f ../images/custom/app_logo.svg ] ; then
src=../images/custom/app_logo.svg
else
src=../images/app_logo.svg
fi
for i in 16 22 24 32 64 128
do
mkdir -p hicolor/${i}x${i}/apps
inkscape -z -e hicolor/${i}x${i}/apps/icon.png -w $i -h $i $src
inkscape -z -e hicolor/${i}x${i}/apps/icon.png -w $i -h $i ../images/app_logo.svg
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment