Skip to content

Commit

Permalink
chore: add metainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and mmstick committed Mar 18, 2024
1 parent 576386e commit 32e1272
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ desktop-dest := clean(rootdir / prefix) / 'share' / 'applications' / desktop

iconsdir := clean(rootdir / prefix) / 'share' / 'icons' / 'hicolor'

metainfo := appid + '.metainfo.xml'
metainfo-src := 'resources' / metainfo
metainfo-dst := clean(rootdir / prefix) / 'share' / 'metainfo' / metainfo

[private]
default: build-release

Expand Down Expand Up @@ -73,7 +77,7 @@ install-bin src dest: (install-cmd '-Dm0755' src dest)
install-file src dest: (install-cmd '-Dm0644' src dest)

# Install everything
install: (install-bin bin-src bin-dest) (install-file desktop-src desktop-dest)
install: (install-bin bin-src bin-dest) (install-file desktop-src desktop-dest) (install-file metainfo-src metainfo-dst)
find 'resources'/'default_schema' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'default_schema'/{} {{default-schema-target}}/{}
find 'resources'/'icons' -type f -exec echo {} \; | rev | cut -d'/' -f-3 | rev | xargs -d '\n' -I {} install -Dm0644 'resources'/'icons'/{} {{iconsdir}}/{}

Expand Down
23 changes: 23 additions & 0 deletions resources/com.system76.CosmicSettings.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.system76.CosmicSettings</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>[email protected]</update_contact>
<url type="homepage">https://github.com/pop-os/cosmic-settings</url>
<url type="bugtracker">https://github.com/pop-os/cosmic-settings</url>
<name>COSMIC Settings</name>
<summary>Settings application for the COSMIC desktop</summary>
<description>
<p>Settings application for the COSMIC desktop</p>
</description>
<launchable type="desktop-id">com.system76.CosmicSettings.desktop</launchable>
<icon type="remote" height="256" width="256">https://raw.githubusercontent.com/pop-os/cosmic-settings/master/resources/icons/256x256/apps/com.system76.CosmicSettings.svg</icon>
<provides>
<binaries>
<binary>cosmic-settings</binary>
</binaries>
</provides>
</component>

0 comments on commit 32e1272

Please sign in to comment.