Add metainfo

This commit is contained in:
Jeremy Soller 2024-03-13 14:07:25 -06:00
parent e24826e970
commit 4169fffa0f
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 28 additions and 0 deletions

View file

@ -15,6 +15,10 @@ desktop := APPID + '.desktop'
desktop-src := 'res' / desktop
desktop-dst := clean(rootdir / prefix) / 'share' / 'applications' / desktop
metainfo := APPID + '.metainfo.xml'
metainfo-src := 'res' / metainfo
metainfo-dst := clean(rootdir / prefix) / 'share' / 'metainfo' / metainfo
icons-src := 'res' / 'icons' / 'hicolor'
icons-dst := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'
@ -61,6 +65,7 @@ run *args:
install:
install -Dm0755 {{bin-src}} {{bin-dst}}
install -Dm0644 {{desktop-src}} {{desktop-dst}}
install -Dm0644 {{metainfo-src}} {{metainfo-dst}}
for size in `ls {{icons-src}}`; do \
install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \
done

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.system76.CosmicTerm</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
<project_group>COSMIC</project_group>
<developer_name>System76</developer_name>
<update_contact>jeremy@system76.com</update_contact>
<url type="homepage">https://github.com/pop-os/cosmic-term</url>
<url type="bugtracker">https://github.com/pop-os/cosmic-term</url>
<name>COSMIC Terminal</name>
<summary>Terminal emulator for the COSMIC desktop</summary>
<description>
<p>Terminal emulator for the COSMIC desktop</p>
</description>
<launchable type="desktop-id">com.system76.CosmicTerm.desktop</launchable>
<icon type="remote" height="256" width="256">https://raw.githubusercontent.com/pop-os/cosmic-term/master/res/icons/hicolor/256x256/apps/com.system76.CosmicTerm.svg</icon>
<provides>
<binaries>
<binary>cosmic-term</binary>
</binaries>
</provides>
</component>