-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Flatpak #104
feat: Flatpak #104
Conversation
Yep - I'd definitely been interested in this :) |
241d4a6
to
1667ddc
Compare
02643c5
to
81cb7ba
Compare
BTW - I wanted to clarify that you've been using the draft status to mark things before they're ready for me to review, right? Or did you want me to go through and give some feedback as-is? |
The draft status is mainly about the manifest for which I haven't found a good way to test how it would look like in app stores and on Flathub itself without uploading it (and also because I didn't have time every day). Also 61a84b7 still shows a few lints (e.g. it doesn't like There are a few approaches on how we could move that PR forward:
If you're fine to review you can probably go with 2. The current manifest could look like this with the SHA of the current PR commit 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/8b700b9080ec309b9f0b0687b74e2fb95bde0773.tar.gz
sha256: 7f7764713cf9c6e622362a42b55a491ece09120cdcd9643efa250f5310ca4195 https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html KDE projects, or OBS have example of the metadata xml. |
I guess the "development tool" apply to neovim-gtk. Probably https://docs.flatpak.org/en/latest/sandbox-permissions.html#d-bus-access |
|
(sorry I haven't gotten to this yet btw! Will try to do so soon, got distracted this last weekend trying to fight 3D printer problems…) |
Sorry, that the yaml was included the latest commit. I actually thought that I had excluded it but maybe I added it again during some rebase. Are you planning to submit the yaml to https://github.com/flathub/flathub? |
It's no problem! And yes - I will get to submitting this ASAP :), I realized I still needed to do that after hitting merge |
ok - back from vacation, and finally got my printer in a state where it's not throwing me problems constantly. will actually get to this in the next few days, sorry for the delay! |
Been looking into trying to build this today btw and I've been hitting these errors:
I'm looking into it as well to see if I can figure out the issue, it definitely seems like flatpak builder's UX is unfortunately very lacking (I haven't found any results for either error on DDG. I assume I need to correct a license tag somewhere?) |
Hey @theHamsta sorry it's taken me so long to ask - but would you possibly be willing to take over maintaining the flatpak for this? |
I experimented with creating a flatpak manifest for neovim-gtk. For testing purposes I included the manifest in this PR though it is not indented to live in this repo and to be submitted to flathub instead.
Please let me know whether you are interested in publishing a Flatpak for neovim-gtk.
To test: