Skip to content

Commit

Permalink
Installing icon on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
houmain committed Apr 19, 2024
1 parent 794d609 commit ecb121b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 31 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
install(DIRECTORY extra/share DESTINATION . COMPONENT Application)
install(DIRECTORY extra/lib DESTINATION . COMPONENT Application)
install(DIRECTORY extra/xdg DESTINATION "../etc" COMPONENT Application)
install(FILES extra/icon.svg DESTINATION "share/icons/hicolor/scalable/apps"
RENAME "io.github.houmain.keymapper.svg" COMPONENT Application)
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
install(TARGETS ${TARGETS} DESTINATION "bin" COMPONENT Application)
install(FILES extra/keymapper-launchd DESTINATION "bin" COMPONENT Application)
Expand Down Expand Up @@ -326,9 +328,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libudev1, libusb-1.0-0, libappindicator3-1")
set(CPACK_DEBIAN_PACKAGE_SECTION utils)
set(CPACK_RPM_PACKAGE_REQUIRES "libusb1, libxkbcommon, libappindicator3-1")
set(CPACK_RPM_PACKAGE_LICENSE "GPL")
set(CPACK_RPM_PACKAGE_GROUP utils)
set(CPACK_RPM_PACKAGE_REQUIRES "libusb1, libxkbcommon, libappindicator-gtk3")
set(CPACK_RPM_PACKAGE_LICENSE "GPLv3")
set(CPACK_RPM_PACKAGE_GROUP "System Environment/Daemons")
endif()

include(CPack)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ A C++17 conforming compiler is required. A script for the

**Installing dependencies on Debian Linux and derivatives:**
```
sudo apt install build-essential git cmake libudev-dev libusb-1.0-0-dev libx11-dev libdbus-1-dev libwayland-dev libxkbcommon-dev libappindicator3-dev
sudo apt install build-essential git cmake libudev-dev libusb-1.0-0-dev libx11-dev libdbus-1-dev libwayland-dev libxkbcommon-dev libgtk-3-dev libappindicator3-dev
```

**Checking out the source:**
Expand Down
58 changes: 31 additions & 27 deletions src/common/icon.svg → extra/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ecb121b

Please sign in to comment.