Skip to content

Commit 6b89f85

Browse files
author
stsdc
committed
Merge branch 'appcenter'
2 parents 2be1b16 + 87902a4 commit 6b89f85

12 files changed

+3862
-9
lines changed

CMakeLists.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ include (GNUInstallDirs)
77
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
88

99
set (EXEC_NAME ${CMAKE_PROJECT_NAME})
10-
set (DATADIR "${CMAKE_INSALL_PREFIX}/share")
10+
set (DATADIR ${CMAKE_INSTALL_FULL_DATAROOTDIR})
1111
set (PKGDATADIR "${DATADIR}/${PROJECT_NAME}")
12+
set (PREFIX ${CMAKE_INSTALL_PREFIX})
1213
set (GETTEXT_PACKAGE ${CMAKE_PROJECT_NAME})
1314
set (RELEASE_NAME "Monitor")
14-
set (VERSION "0.2.6")
15+
set (VERSION "0.2.7")
1516
set (VERSION_INFO "Alpha")
1617
set (DOLLAR "$")
1718

@@ -47,7 +48,11 @@ add_subdirectory (src)
4748
add_subdirectory (po)
4849
add_subdirectory (data)
4950

50-
# install our .desktop file so the Applications menu will see it
51-
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.stsdc.monitor.desktop DESTINATION /usr/share/applications/)
52-
# install our .appdata.xml file so AppCenter will see it
53-
install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/com.github.stsdc.monitor.appdata.xml DESTINATION /usr/share/metainfo/)
51+
# uninstall target
52+
configure_file (
53+
"${CMAKE_SOURCE_DIR}/cmake/Uninstall.cmake"
54+
"${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake"
55+
IMMEDIATE @ONLY)
56+
57+
add_custom_target (uninstall
58+
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/Uninstall.cmake)

data/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# install our .desktop file so the Applications menu will see it
2+
install (FILES com.github.stsdc.monitor.desktop DESTINATION share/applications/)
3+
# install our .appdata.xml file so AppCenter will see it
4+
install (FILES com.github.stsdc.monitor.appdata.xml DESTINATION share/metainfo/)
5+
6+
install (FILES icons/16/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/16x16/apps)
7+
install (FILES icons/24/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/24x24/apps)
8+
install (FILES icons/32/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/32x32/apps)
9+
install (FILES icons/48/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/48x48/apps)
10+
install (FILES icons/64/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/64x64/apps)
11+
install (FILES icons/128/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/128x128/apps)
12+
13+
install (FILES icons/64/com.github.stsdc.monitor.svg DESTINATION share/icons/hicolor/scalable/apps)

data/com.github.stsdc.monitor.appdata.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,13 @@
1313
<value key="x-appcenter-color-primary-text">rgb(255, 255, 255)</value>
1414
<value key="x-appcenter-suggested-price">0</value>
1515
</custom>
16+
<screenshots>
17+
<screenshot type="default">
18+
<image>https://github.com/stsdc/monitor/raw/master/data/com.github.stsdc.monitor.screenshot.png</image>
19+
</screenshot>
20+
</screenshots>
21+
<developer_name>Stanisław Dac</developer_name>
22+
<url type="homepage">https://github.com/stsdc/monitor</url>
23+
<url type="bugtracker">https://github.com/stsdc/monitor/issues</url>
24+
<url type="help">https://github.com/stsdc/monitor/issues</url>
1625
</component>

data/com.github.stsdc.monitor.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ GenericName=System Monitor
44
Comment=Manage processes and monitor resource usage of the system
55
Categories=System;Utility;
66
Exec=com.github.stsdc.monitor %U
7-
Icon=utilities-system-monitor
7+
Icon=com.github.stsdc.monitor
88
Terminal=false
99
Type=Application
1010
X-GNOME-Gettext-Domain=monitor
1111
Keywords=System monitor;System usage;Task manager;
12-
X-GNOME-UsesNotifications=true
12+
X-GNOME-UsesNotifications=false

0 commit comments

Comments
 (0)