diff --git a/Makefile b/Makefile index b20222a7..44253ce5 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/com.github.Lyude.neovim-gtk.yaml b/com.github.Lyude.neovim-gtk.yaml new file mode 100644 index 00000000..b5ee2d14 --- /dev/null +++ b/com.github.Lyude.neovim-gtk.yaml @@ -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 diff --git a/desktop/com.github.Lyude.neovim-gtk-symbolic.svg b/desktop/com.github.Lyude.neovim-gtk-symbolic.svg index 3cc09cba..5bc45a4e 100644 --- a/desktop/com.github.Lyude.neovim-gtk-symbolic.svg +++ b/desktop/com.github.Lyude.neovim-gtk-symbolic.svg @@ -13,7 +13,7 @@ viewBox="0 0 212.20267 212.20267" version="1.1" id="svg27" - sodipodi:docname="org.daa.NeovimGtk-symbolic.svg" + sodipodi:docname="com.github.Lyude.neovim-gtk-symbolic.svg" inkscape:version="0.92.3 (2405546, 2018-03-11)"> diff --git a/desktop/com.github.Lyude.neovim-gtk.desktop b/desktop/com.github.Lyude.neovim-gtk.desktop index f1687fc9..a12d26c4 100644 --- a/desktop/com.github.Lyude.neovim-gtk.desktop +++ b/desktop/com.github.Lyude.neovim-gtk.desktop @@ -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; diff --git a/desktop/com.github.Lyude.neovim-gtk.metainfo.xml b/desktop/com.github.Lyude.neovim-gtk.metainfo.xml new file mode 100644 index 00000000..fc19f4b5 --- /dev/null +++ b/desktop/com.github.Lyude.neovim-gtk.metainfo.xml @@ -0,0 +1,35 @@ + + + + com.github.Lyude.neovim-gtk + neovim-gtk + GTK UI for neovim written in rust using gtk-rs bindings + Lyude Paul, @daa84 + +

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.

+

There are a very large number of improvements from @daa84's version, including: +

    +
  • Lots of bugfixes
  • +
  • We're fully ported to GTK4, and have a Snapshot based renderer instead of a cairo based renderer
  • +
  • Smooth resizing
  • +
+

+
+ GPL-3.0 + + neovim + vim + editor + + + network + web + + https://github.com/Lyude/neovim-gtk + https://github.com/Lyude/neovim-gtk/issues/new + + + https://raw.githubusercontent.com/Lyude/neovim-gtk/main/screenshots/neovimgtk-screen.png + + +
diff --git a/desktop/com.github.Lyude.neovim-gtk.svg b/desktop/com.github.Lyude.neovim-gtk.svg index d8957867..23174fc8 100644 --- a/desktop/com.github.Lyude.neovim-gtk.svg +++ b/desktop/com.github.Lyude.neovim-gtk.svg @@ -16,7 +16,7 @@ id="svg2" version="1.1" inkscape:version="0.92.3 (2405546, 2018-03-11)" - sodipodi:docname="org.daa.NeovimGtk.svg" + sodipodi:docname="com.github.Lyude.neovim-gtk.svg" enable-background="new" inkscape:export-filename="/home/daa/projects/neovim-gtk/desktop/nvim-gtk.png" inkscape:export-xdpi="90"