TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.41k stars 3.06k forks source link

Publishing NewPipe to Flathub #11597

Open julianwi opened 2 weeks ago

julianwi commented 2 weeks ago

Checklist

Feature description

Hi, I'm involved in the android translation layer project (https://gitlab.com/android_translation_layer). We are reimplementing the Android application API on top of GNU/Linux and Freedesktop technology. NewPipe is currently one of the best supported apps (nearly feature complete). We would like to know if you would be fine with publishing NewPipe to Flathub.

Why do you want this feature?

Our translation layer is very lightweight and can therefore be bundled into a Flatpak. I have created a Flatpak manifest for NewPipe here: https://gitlab.com/julianwi/newpipe_flatpak. It works really great and I think it would make sense to put it on Flathub, so that other people can use it as well.

Additional information

The size of the Flatpak is about 59MB. The largest parts are libart, libicu, libskia, framework-res.apk and NewPipe.apk, each of them about 10MB plus some smaller libraries. The common libraries can be split out into a Flatpak baseapp to be reused once we support more applications. The first launch will take a few seconds to do the ahead-of-time compilation. Subsequent launches are nearly instant. With the help of android translation layer, NewPipe integrates nicely into the Linux Desktop environment. Notifications are published to the XDG-desktop-portal, the playback can be controlled using MPRIS, the Light/Dark theme is automatically selected on startup, and the widget tree can be inspected using GTK-Inspector.

theScrabi commented 2 weeks ago

Can you provide a Single File Bundle, so we can test it?

IMO You can do this, but you will have to be responsible for maintaining the flatpack package and the desktop experience. I think we are currently exhausted with the things we already have to do.

When you put NP on Flathub please mark it as experimental so if certain things don't yet work people will not come here and complain about things not working on Desktop.

julianwi commented 2 weeks ago

Marking it as experimental is a good idea, as it has not been tested widely.

I created a single file bundle (arch=x86_64) of it here: https://gitlab.com/-/project/58175993/uploads/e45086f66a720cd4d354ed88ab3044ff/NewPipe.flatpak

theScrabi commented 2 weeks ago

OMG this is awesome. Just in case someone is interested how it looks like:

https://github.com/user-attachments/assets/11430372-69e4-485d-a422-1517e9ea3d43