Add metainfo

This commit is contained in:
Jeremy Soller 2024-03-13 14:05:43 -06:00
parent 769c005830
commit 5c20c2e206
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
2 changed files with 31 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'
@ -67,6 +71,7 @@ test *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,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.system76.CosmicFiles</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-files</url>
<url type="bugtracker">https://github.com/pop-os/cosmic-files</url>
<name>COSMIC Files</name>
<summary>File manager for the COSMIC desktop</summary>
<description>
<p>File manager for the COSMIC desktop</p>
</description>
<launchable type="desktop-id">com.system76.CosmicFiles.desktop</launchable>
<icon type="remote" height="256" width="256">https://raw.githubusercontent.com/pop-os/cosmic-files/master/res/icons/hicolor/256x256/apps/com.system76.CosmicFiles.svg</icon>
<provides>
<mimetypes>
<mimetype>inode/directory</mimetype>
</mimetypes>
<binaries>
<binary>cosmic-files</binary>
</binaries>
</provides>
</component>