Skip to content

Commit

Permalink
Add metainfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Mar 13, 2024
1 parent e24826e commit 4169fff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions res/com.system76.CosmicTerm.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.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>[email protected]</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>

0 comments on commit 4169fff

Please sign in to comment.