-
Notifications
You must be signed in to change notification settings - Fork 14
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
flatpak manifest (org.flatpak.Gourmet.yml) and build instructions (flatpak.yaml)--also updated INSTALL.md #145
Conversation
instructions for installing org.flatpak.Gourmet.yml flatpak
corrected some run symbols
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
It's looking good, but the file is malformed (the template I gave you was erroneous). It should begin so:
on:
push:
tags:
- '*'
jobs:
flatpak:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Flatpak
run: |
sudo apt install flatpak gnome-software-plugin-flatpak && flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Platform//3.36 org.gnome.Sdk//3.36 org.flatpak.Builder
...
I also suggest that you add on workflow-dispatch
, so that it can be triggered from a click, while we get the workflow running:
on:
push:
tags:
- '*'
workflow_dispatch
changed various errors in formatting and split the apt and flatpak install command in "Install Flatpak"
removed comment about working on most debian distros
I removed a vestige reference to python 2.7 from when I was working on the manifest before I found out about the kirienko fork
added workflow dispatch and removed the gnome-software-plugin
added option to run from github, and added -y for the flatpak runtime
split apt and flatpak command
I think that the manifest should be called |
I got the name format from the flatpak documentation https://docs.flatpak.org/en/latest/first-build.html so I thought it was consistent with other flatpaks. If the flatpak stays only on github and never makes it to flatpak then I could see naming it com.github.kirienko.Gourmet.yaml to avoid confusion with the original version and to make it clear that it won't go on flatpak. This flatpak will not work with the old Gourmet because too many dependencies are now deprecated or not even available. The ones that are available tend to be unmaintained forks that I wasn't sure about anyway. I did try to make a flatpak for that one first, after trying to contact the maintainer at launchpad for permission, but I failed to get it to work. So to say that the flatpak is for the thinkle github is not correct in my opinion, since it only works for this kirienko fork. |
org.flatpak.Gourmet.yml
Outdated
buildsystem: simple | ||
build-options: | ||
build-args: | ||
- --share=network |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would also need - --socket=pulseaudio
for the timer alerts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I am trying to figure out where it will work. I tried it with where pyglet gets installed, but that didn't work just now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it, it works when added to the run command. I'll adjust flatpak.yaml to enable the pulseaudio socket.
added the pulseaudio socket so timer works
That's true for the example. But the documentation prefers the
Yes! However, we aim to eventually bring all the changes upstream to thinkle/gourmet. Thus, I think it would be less error-prone to name the file seemingly incorrectly for now :) |
split flatpak off into another job to get rid of an error when running.
try with sudo to add flathub repository
line 24 changed flatpak remote-add from sudo to --user due to error
changed the name of the manifest to io.github.thinkle.Gourmet.yml
Ok, the flatpak manifest has been renamed to io.github.thinkle.Gourmet.yml |
Added Pyglet Player to dependencies to get rid of a terminal error, and added Ubuntu 20.04 specific instructions including a workaround for issue kirienko#107. I also added a note at the beginning that this fork is still under development.
I also updated the INSTALL.md but did not realize that it would go into the same pull request. In the INSTALL.md I took out parts about Gourmet being prepackaged, changed the python to 3.8 and changed the dependencies, mentioned that this is still in development, and included a new section specifically for Ubuntu 20.04. |
In the INSTALL.md, pulling in all the dependencies also adds unexpected packages like the chromium snap and some drivers. I don't know why it does that. |
This is probably due to the mention of While I appreciate that you're updating With regards with the Flatpak, I think that:
The last point is tricky: the build dir is cannot be compressed directly, it seems. Rather, |
added name and removed inputs from workflow_dispatch
removed selenium from PipDependencies
-Ok, I took out selenium from the flatpak manifest and it still seems to work. It should also be taken out of https://github.com/kirienko/gourmet/blob/master/requirements.txt |
I got a single compressed directory into a tar, which contains the repo. Size is 110 MB and does not include the Gnome 3.36 runtime which has to be installed separately. I could put instructions inside the tar if they would be useful. I could see this being useful for end users, but for testing it would have to be rebuilt each time a change is made. Also app launcher icons are not being installed at this time through this tar, which I believe is a sandbox permission problem during the building so it should just take some research to fix. I am hesitant to upload the new tar to my fork right now though because I don't want to make this PR more complicated. |
the changes to INSTALL.md should now be reverted to the original before I modified it. |
I am closing this PR so I can reset my fork and make branches. Then I can make smaller pull requests. |
This flatpak manifest (org.flatpak.Gourmet.yml) works for me in Ubuntu 20.04, but the manifest should work in any distro. The build instructions (flatpak.yaml) will vary by distro, but it works in Ubuntu 20.04.