mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
feat(CMakeLists.txt): do not deal with custom app_logo, replace it directly
This commit is contained in:
parent
d55dc5efd6
commit
9bcdc70cd8
2 changed files with 2 additions and 15 deletions
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,7 @@
|
|||
#!/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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue