Skip to content

Commit 618c3ce

Browse files
aleixpolnyalldawson
authored andcommitted
Centralise linux metadata in the buildsystem
Instead of having it defined on every version of the packaging
1 parent ea0fead commit 618c3ce

File tree

99 files changed

+23
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+23
-2
lines changed

linux/CMakeLists.txt

+22
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1+
#metadata
2+
install(FILES org.qgis.qgis.desktop DESTINATION share/applications)
13
install(FILES org.qgis.qgis.appdata.xml DESTINATION share/metainfo)
4+
5+
#icons
6+
## application icon
7+
install(FILES ${CMAKE_SOURCE_DIR}/images/icons/qgis_icon.svg RENAME qgis.svg DESTINATION share/icons/hicolor/scalable/apps)
8+
install(FILES ${CMAKE_SOURCE_DIR}/images/icons/qgis-icon-16x16.png RENAME qgis.png DESTINATION share/icons/hicolor/16x16/apps)
9+
install(FILES ${CMAKE_SOURCE_DIR}/images/icons/qgis-icon-512x512.png RENAME qgis.png DESTINATION share/icons/hicolor/512x512/apps)
10+
11+
# Install MIME type icon
12+
install(FILES ${CMAKE_SOURCE_DIR}/images/icons/qgis_mime_icon.svg RENAME qgis-mime.svg DESTINATION share/icons/hicolor/scalable/mimetypes)
13+
foreach(size 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512)
14+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/icons//qgis-mime-icon${size}.png RENAME qgis-mime.png DESTINATION share/icons/hicolor/${size}/mimetypes/)
15+
endforeach()
16+
17+
# Install QGIS file formats icons
18+
foreach(_type qgs qlr qml qpt)
19+
install(FILES ${CMAKE_SOURCE_DIR}/images/icons/qgis_${_type}_icon.svg RENAME qgis_${_type}.svg DESTINATION share/icons/hicolor/scalable/mimetypes/)
20+
foreach(size 8x8 16x16 22x22 24x24 32x32 36x36 42x42 48x48 64x64 72x72 80x80 96x96 128x128 192x192 256x256 512x512)
21+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/icons/qgis-${_type}${size}.png RENAME qgis-${_type}.png DESTINATION share/icons/hicolor/${size}/mimetypes/)
22+
endforeach()
23+
endforeach()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

linux/org.qgis.qgis.appdata.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<releases>
2020
<release version="3.0" />
2121
</releases>
22-
<launchable type="desktop-id">qgis.desktop</launchable>
22+
<launchable type="desktop-id">org.qgis.qgis.desktop</launchable>
2323
<provides>
2424
<binary>qgis</binary>
2525
</provides>

debian/qgis.desktop renamed to linux/org.qgis.qgis.desktop

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[Desktop Entry]
22
Type=Application
33
Name=QGIS Desktop
4-
Version=1.0
54
GenericName=Geographic Information System
65
GenericName[ar]=نظام المعلومات الجغرافي
76
GenericName[az]=Coğrafi informasiya sistemi

0 commit comments

Comments
 (0)