pied icon indicating copy to clipboard operation
pied copied to clipboard

Publish to Flathub

Open lostfictions opened this issue 1 year ago • 12 comments

Hi there, thanks a lot for making Pied! I was able to install and run it from the Flatpak bundle and it reconfigured speech-dispatcher without a problem (though it took me a few minutes to realize I had to download the first voice and then manually click again to activate it).

Any chance you might publish it to Flathub? I'm unlikely to remember to manually check for updates, and I'd love to have an easy way to recommend it to other people :)

lostfictions avatar Dec 03 '23 22:12 lostfictions

Hi @lostfictions!

Yes, I would like to eventually get it published on Flathub. However, this will likely take a little while, as I'll need to agree some exceptions with the Flathub team (being able to force speech dispatcher to restart requires some elevated privileges), plus I'll need to figure out a good way to bundle all the flutter dependencies with a release so that it can be built without network access (Flathub requires this)

In the meantime, I think for the next release I'll add in a very simple update checker, so that people using either the Flatpak or AppImage (when it's ready) will get notified when a new version is available.

Elleo avatar Dec 04 '23 11:12 Elleo

Hello, thanks for making this app which helped me learn about Piper https://floss.social/@sonny/111533945050274953

this will likely take a little while, as I'll need to agree some exceptions with the Flathub team (being able to force speech dispatcher to restart requires some elevated privileges)

FYI, this won't be a problem, simply explain why you need the permission when submitting the app to Flathub.

Cheers

sonnyp avatar Dec 06 '23 15:12 sonnyp

Hello, thanks for making this app which helped me learn about Piper https://floss.social/@sonny/111533945050274953

this will likely take a little while, as I'll need to agree some exceptions with the Flathub team (being able to force speech dispatcher to restart requires some elevated privileges)

FYI, this won't be a problem, simply explain why you need the permission when submitting the app to Flathub.

Cheers

That's great, thanks for the info!

Elleo avatar Dec 06 '23 19:12 Elleo

plus I'll need to figure out a good way to bundle all the flutter dependencies with a release so that it can be built without network access (Flathub requires this)

You could just repackage your binary tarball into a flatpak (build from source is not strictly necessary). See this for example (line 140): https://github.com/flathub/com.github.KRTirtho.Spotube/blob/master/com.github.KRTirtho.Spotube.yml

faveoled avatar Feb 06 '24 17:02 faveoled

@faveoled thanks for the pointer! I'll try and set some time aside to look more deeply into publishing to flathub soon

Elleo avatar Feb 08 '24 10:02 Elleo

Hmm, I downloaded your flatpak and it looks like a zip, but it's not. Usually flatpak files contain just some data to access additional repos.

I must admit I don't know how I should install Pied. Usually I don't have similar issues

Jopp-gh avatar Mar 23 '24 22:03 Jopp-gh

Hmm, I downloaded your flatpak and it looks like a zip, but it's not. Usually flatpak files contain just some data to access additional repos.

I must admit I don't know how I should install Pied. Usually I don't have similar issues

Hi @Jopp-gh,

You can just run flatpak install com.mikeasoft.pied.flatpak in the directory you've downloaded the flatpak to

Hope that helps!

Elleo avatar Mar 24 '24 20:03 Elleo

@faveoled thanks for the pointer! I'll try and set some time aside to look more deeply into publishing to flathub soon

Thanks :) +1 for it.

mokazemi avatar Apr 02 '24 17:04 mokazemi

Any update on this?

KAGEYAM4 avatar May 01 '24 06:05 KAGEYAM4

https://github.com/flathub/flathub/pull/5233

Here is a PR how not to do it. The exception should be no issue, as you have a very specific use case.

Please just start the process to get it going, you can change the source any time, for example to make it reproducible. Until then you can just use a tarball, and include the build instructions how to produce that tarball, everything fine.

Maybe be a bit more specific on these permissions, as they are really broad:

  - --device=dri
  - --filesystem=home
  - --talk-name=org.freedesktop.Flatpak

home access and that session bus allow full privilege escalation.

@barthalion @hfiguiere could you add a comment on that?

This is a great addition to the FOSS world, thanks!

boredsquirrel avatar Jun 26 '24 15:06 boredsquirrel

Nothing to add from me. We discuss sandbox holes during the initial review and may ask you to submit an exception to the linter if the use case is legit.

barthalion avatar Jul 01 '24 09:07 barthalion

Thank you SO much @Elleo for making Pied!!! I was up for hours last night trying to get things right. Within literally seconds of using Pied, everything was solved. Seriously, thank you soooooooo much!

A-Metal-Penguin avatar Dec 08 '24 18:12 A-Metal-Penguin