Skip to content

Commit

Permalink
For testing only: add flatpak manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
theHamsta committed Oct 30, 2023
1 parent e549cf1 commit fe534e9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
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/d42692d9a2cfa6ee3da56e1fc92430e74f540f84.tar.gz
sha256: 9ed41be65765b37bd70d8be7d19dee57e290c293610071e32c1de3b711d34f5e
2 changes: 1 addition & 1 deletion desktop/com.github.Lyude.neovim-gtk.metainfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe534e9

Please sign in to comment.