Add empty icon to make linuxdeploy happy.

This commit is contained in:
tastytea 2020-02-04 14:57:27 +01:00
parent 53e7d0ed06
commit d38e40a1f2
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 8 additions and 1 deletions

View File

@ -42,8 +42,14 @@ if(WITH_DESKTOP)
# Needed for AppImage.
configure_file("de.tastytea.${PROJECT_NAME}.desktop.in"
"${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop"
# linuxdeploy insists on an icon.
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.svg" "")
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.desktop"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/de.tastytea.${PROJECT_NAME}.svg"
"${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps")
endif()
# include(cmake/packages.cmake)

View File

@ -4,6 +4,7 @@ Type=Application
Name=@PROJECT_NAME@
NoDisplay=true
Comment=@PROJECT_DESCRIPTION@
Icon=de.tastytea.mastorss
Exec=@PROJECT_NAME@
Terminal=true
Categories=Network;