Add metainfo

This commit is contained in:
Jeremy Soller 2024-03-13 09:50:47 -06:00
parent 90cbcaeca3
commit bcc1ad8284
5 changed files with 50 additions and 2 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text

View file

@ -1,5 +1,7 @@
# COSMIC Edit # COSMIC Text Editor
COSMIC Text Editor Text editor for the COSMIC desktop
![Screenshot](res/screenshots/screenshot-1.png)
Currently an incomplete **pre-alpha**, this project is a work in progress - issues are expected. Currently an incomplete **pre-alpha**, this project is a work in progress - issues are expected.

View file

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

View file

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.system76.CosmicEdit</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-edit</url>
<url type="bugtracker">https://github.com/pop-os/cosmic-edit</url>
<name>COSMIC Text Editor</name>
<summary>Text editor for the COSMIC desktop</summary>
<description>
<p>Text editor that provides advanced features with high performance</p>
<ul>
<li>Written in Rust for performance and safety</li>
<li>Syntax highlighting built in for most languages</li>
<li>Provides project-based editing</li>
<li>Integrated git management</li>
</ul>
</description>
<launchable type="desktop-id">com.system76.CosmicEdit.desktop</launchable>
<icon type="remote" height="256" width="256">https://raw.githubusercontent.com/pop-os/cosmic-edit/master/res/icons/hicolor/256x256/apps/com.system76.CosmicEdit.svg</icon>
<screenshots>
<screenshot type="default">
<image>https://media.githubusercontent.com/media/pop-os/cosmic-edit/master/res/screenshots/screenshot-1.png</image>
</screenshot>
</screenshots>
<provides>
<mimetypes>
<mimetype>text/plain</mimetype>
</mimetypes>
<binaries>
<binary>cosmic-edit</binary>
</binaries>
</provides>
</component>

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ba78b19f6c4ecce1cbbb7a85495426ab5102575fef9838b5a1df199c951e985
size 258913