ExpressLRS-Configurator icon indicating copy to clipboard operation
ExpressLRS-Configurator copied to clipboard

Flatpak version

Open razzeee opened this issue 2 years ago • 3 comments

Hey everybody,

I had a go at a flatpak version and would like to document this here.

You can find the code here: https://github.com/razzeee/com.github.expresslrs.ExpressLRSConfigurator

It seems to startup fine and building firmware seems to work.

Here's the problems I'm aware of:

  1. Can't select a device to flash to, as udevadm doesn't seem available. This might be possible with flatpak-spawn --host as far as I found out, but that would need to be patched in the app I guess.

  2. There are some mesa/nvidia/zinc warnings at the start of the app, not sure what they affect

So basically creating firmware seems to work, but no flashing for now.

razzeee avatar Sep 26 '22 22:09 razzeee

Hey,

If you are interested, you could toy with electron-builder flatpak support: https://www.electron.build/configuration/flatpak.html. Also, I am not sure how flatpaks work, but ExpressLRS Configurator requires git and python 3.X as peer dependencies.

jurgelenas avatar Sep 27 '22 07:09 jurgelenas

Both git and python are there and work fine as far as I can tell.

Electron builder might be complicated, as I ended up building this from the .deb and not from source unfortunately.

When trying to build from source, specifically when installing (probably post install) one of the used dependencies tries to download / call out to some website. But flatpak builds must be done offline for security reasons, so that fails.

I'll try to have another look and see if the builder approach might change things.

razzeee avatar Sep 27 '22 09:09 razzeee

I don't think using electron-builder is the correct way forward, after a quick look.

Regarding the device selection, it seems to be caused by the serialport lib and there's already an issue over there for it, but hasn't gained much traction.

https://github.com/serialport/node-serialport/issues/2306

razzeee avatar Oct 02 '22 12:10 razzeee

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

razzeee avatar Nov 20 '22 15:11 razzeee

The flatpak repo is here now: https://github.com/flathub/org.expresslrs.ExpressLRSConfigurator

And there should be a build available in a few hours (~4h)

razzeee avatar Nov 21 '22 13:11 razzeee

Here we go https://flathub.org/apps/details/org.expresslrs.ExpressLRSConfigurator

https://beta.flathub.org/apps/details/org.expresslrs.ExpressLRSConfigurator

razzeee avatar Nov 21 '22 23:11 razzeee