Skip to content

Commit

Permalink
add icon to package
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-ullery committed Dec 1, 2024
1 parent aeafece commit 394da5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ set(PKEXEC_POLICY ${GENERATED_DIR}/com.github.jack-ullery.AppAnvil.pkexec.policy
configure_file("${PKEXEC_POLICY_IN}" "${PKEXEC_POLICY}" @ONLY)

set(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/docs/copyright")
set(ICON_FILE "${PROJECT_UI_DIR}/misc/icon.svg")

#### Add Linters and Static Analysis ####

Expand Down Expand Up @@ -231,6 +232,14 @@ install(
RENAME "copyright"
)

#### Install icon ####
install(
FILES ${ICON_FILE}
DESTINATION "share/icons"
RENAME "${PROJECT_NAME}.svg"
)

#### Add CPack target ####
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtkmm-3.0-dev,libjsoncpp-dev,libapparmor-dev")
set(CPACK_PACKAGE_CONTACT "Jack Ullery")
Expand Down
1 change: 1 addition & 0 deletions resources/appanvil.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Encoding=UTF-8
Version=1.0
Type=Application
Exec=@CMAKE_INSTALL_PREFIX@/bin/@PROJECT_NAME@
Icon=@CMAKE_INSTALL_PREFIX@/share/icons/@[email protected]
Name=AppAnvil

0 comments on commit 394da5a

Please sign in to comment.