From 931de4906950fa75051b44fd3ed3b704fd15b8ac Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 28 Oct 2023 17:34:20 +0200 Subject: [PATCH] For testing only: add flatpak manifest --- Makefile | 2 +- com.github.Lyude.neovim-gtk.yaml | 32 +++++++++++++++++++ .../com.github.Lyude.neovim-gtk.metainfo.yaml | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 com.github.Lyude.neovim-gtk.yaml diff --git a/Makefile b/Makefile index b191a41c..cdea9fe9 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ install: install-resources cargo install $(CARGO_ARGS) --path . --force --root $(DESTDIR)$(PREFIX) install-flatpak: install - mkdir -p /usr/share/swcatalog/yaml + mkdir -p /app/share/metainfo/ cp desktop/com.github.Lyude.neovim-gtk.metainfo.yaml /app/share/metainfo/ install-debug: install-resources diff --git a/com.github.Lyude.neovim-gtk.yaml b/com.github.Lyude.neovim-gtk.yaml new file mode 100644 index 00000000..81abcecc --- /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/7bcf6024d5797c1db7731a9507b384de91ed1d51.tar.gz + sha256: aa08c7c36aa0526a74c2c3034d9d00c3d75db4eb2f2cf3f1603a1da6c18ee743 diff --git a/desktop/com.github.Lyude.neovim-gtk.metainfo.yaml b/desktop/com.github.Lyude.neovim-gtk.metainfo.yaml index eb00dd79..5673e8be 100644 --- a/desktop/com.github.Lyude.neovim-gtk.metainfo.yaml +++ b/desktop/com.github.Lyude.neovim-gtk.metainfo.yaml @@ -2,7 +2,7 @@ --- File: DEP-11 Version: '0.8' -Origin: chromodoris-main +Origin: neovim-gtk MediaBaseUrl: https://raw.githubusercontent.com/Lyude/neovim-gtk/main/ --- ID: com.github.Lyude.neovim-gtk