Skip to content

Commit b12eca1

Browse files
authored
Merge pull request #52 from renner0e/linux-desktop
feat: add desktop file + icon to cmake
2 parents c35b283 + 22d9915 commit b12eca1

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,10 @@ install(TARGETS ${PROJECT_NAME}
6666
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
6767
)
6868

69+
if (UNIX AND NOT APPLE)
70+
install(PROGRAMS deploy/linux/io.github.prayag2.Drawy.desktop.in DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/applications RENAME io.github.prayag2.Drawy.desktop)
71+
install(FILES assets/logo.svg DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/icons/hicolor/scalable/apps RENAME io.github.prayag2.Drawy.svg)
72+
install(FILES deploy/linux/io.github.prayag2.Drawy.metainfo.xml.in DESTINATION ${CMAKE_INSTALL_FULL_DATADIR}/metainfo/ RENAME io.github.prayag2.Drawy.metainfo.xml)
73+
endif()
6974

7075
qt_finalize_executable(${PROJECT_NAME})
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Name=Drawy
4+
Comment=Your handy, infinite, brainstorming tool
5+
Exec=drawy
6+
Icon=io.github.prayag2.Drawy
7+
Categories=Graphics
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<component type="desktop-application">
3+
<id>io.github.prayag2.Drawy</id>
4+
<name>Drawy</name>
5+
<summary>Your handy, infinite, brainstorming tool</summary>
6+
<developer id="com.github.prayag2">
7+
<name>Prayag Jain</name>
8+
</developer>
9+
<metadata_license>CC-BY-4.0</metadata_license>
10+
<project_license>GPL-3.0-or-later</project_license>
11+
<description>
12+
<p>Drawy is a work-in-progress infinite whiteboard tool, which aims to be a native desktop alternative to the amazing web-based Excalidraw.</p>
13+
</description>
14+
<url type="homepage">https://github.com/Prayag2/drawy</url>
15+
<url type="bugtracker">https://github.com/Prayag2/drawy/issues</url>
16+
<url type="faq">https://github.com/Prayag2/drawy/discussions</url>
17+
<url type="help">https://github.com/Prayag2/drawy/discussions</url>
18+
<url type="vcs-browser">https://github.com/Prayag2/drawy</url>
19+
<url type="contribute">https://github.com/Prayag2/drawy</url>
20+
<categories>
21+
<category>Qt</category>
22+
<category>Graphics</category>
23+
</categories>
24+
<recommends>
25+
<control>pointing</control>
26+
</recommends>
27+
<content_rating type="oars-1.1"/>
28+
<launchable type="desktop-id">io.github.prayag2.Drawy.desktop</launchable>
29+
<branding>
30+
<color type="primary" scheme_preference="light">#27a9ff</color>
31+
<color type="primary" scheme_preference="dark">#002d6c</color>
32+
</branding>
33+
</component>

0 commit comments

Comments
 (0)