ExpressLRS-Configurator
ExpressLRS-Configurator copied to clipboard
Flatpak version
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:
-
Can't select a device to flash to, as
udevadm
doesn't seem available. This might be possible withflatpak-spawn --host
as far as I found out, but that would need to be patched in the app I guess. -
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.
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.
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.
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
https://github.com/flathub/flathub/pull/3655
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)
Here we go https://flathub.org/apps/details/org.expresslrs.ExpressLRSConfigurator
https://beta.flathub.org/apps/details/org.expresslrs.ExpressLRSConfigurator