Skip to content

Commit

Permalink
build: add appstream metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Nov 3, 2023
1 parent 61a84b7 commit 95f130e
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ run:
install: install-resources
cargo install $(CARGO_ARGS) --path . --force --root $(DESTDIR)$(PREFIX)

install-flatpak: install
mkdir -p /app/share/metainfo/
cp desktop/com.github.Lyude.neovim-gtk.metainfo.xml /app/share/metainfo/

install-debug: install-resources
cargo install $(CARGO_ARGS) --debug --path . --force --root $(DESTDIR)$(PREFIX)

Expand Down
32 changes: 32 additions & 0 deletions com.github.Lyude.neovim-gtk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
app-id: com.github.Lyude.neovim-gtk
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: nvim-gtk
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --socket=session-bus # for `flatpak-spawn --host nvim`
build-options:
append-path: "/usr/lib/sdk/rust-stable/bin"
build-args:
- "--share=network" # for cargo fetching dependencies
env:
CARGO_HOME: "/run/build/neovim-gtk" # for caching
CARGO_ARGS: "--features flatpak"
PREFIX: "/app"
modules:
- name: neovim-gtk
buildsystem: simple
build-commands:
- make install-flatpak
sources:
- type: archive
#url: https://github.com/Lyude/neovim-gtk/archive/refs/tags/v1.0.4.tar.gz
#sha256: d0d0dacfbfca16168361f517dee20259785379910173cc33d7d48bd301d30f18
url: https://github.com/Lyude/neovim-gtk/archive/3739f961d28d2a7c98b1fd8be912fc4bb9d9d216.tar.gz
sha256: 78f0a12bdbf5d085fdbc0a57d877b695c5ae4873d036dd5e190141a927da2819
2 changes: 1 addition & 1 deletion desktop/com.github.Lyude.neovim-gtk-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion desktop/com.github.Lyude.neovim-gtk.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name=NeovimGtk
Comment=Gtk GUI for Neovim text editor
Exec=nvim-gtk -- %F
Icon=org.daa.NeovimGtk
Icon=com.github.Lyude.neovim-gtk
Type=Application
Terminal=false
Categories=GTK;Utility;TextEditor;
Expand Down
35 changes: 35 additions & 0 deletions desktop/com.github.Lyude.neovim-gtk.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<!-- Following https://www.freedesktop.org/software/appstream/docs/chap-CatalogData.html, but only component allowed? Not <components>? -->
<component type="desktop-application">
<id>com.github.Lyude.neovim-gtk</id>
<name>neovim-gtk</name>
<summary>GTK UI for neovim written in rust using gtk-rs bindings</summary>
<developer_name>Lyude Paul, @daa84</developer_name>
<description>
<p>GTK ui for neovim written in rust using gtk-rs bindings. With ligatures support. This project began as a fork of @daa84's neovim-gtk.</p>
<p>There are a very large number of improvements from @daa84's version, including:
<ul>
<li>Lots of bugfixes</li>
<li>We're fully ported to GTK4, and have a Snapshot based renderer instead of a cairo based renderer</li>
<li>Smooth resizing</li>
</ul>
</p>
</description>
<metadata_license>GPL-3.0</metadata_license>
<keywords>
<keyword>neovim</keyword>
<keyword>vim</keyword>
<keyword>editor</keyword>
</keywords>
<categories>
<category>network</category>
<category>web</category>
</categories>
<url type="homepage">https://github.com/Lyude/neovim-gtk</url>
<url type="bugtracker">https://github.com/Lyude/neovim-gtk/issues/new</url>
<screenshots>
<screenshot type="default">
<image type="source" width="916" height="668">https://raw.githubusercontent.com/Lyude/neovim-gtk/main/screenshots/neovimgtk-screen.png</image>
</screenshot>
</screenshots>
</component>
2 changes: 1 addition & 1 deletion desktop/com.github.Lyude.neovim-gtk.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 95f130e

Please sign in to comment.