waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Feature]: Flatpak support

Open esimkowitz opened this issue 1 year ago • 4 comments

Feature description

Now that we're planning on deprecating AppImage (#1082), we need to support FlatPak as an alternative agnostic distribution mechanism.

Implementation Suggestion

Electron Builder does not currently support publishing to FlatHub. FlatHub only allows packages that they can build on their infra and Electron Builder is not currently capable of supplying a manifest that would allow their infra to build the packages.

At a brief glance, it seems doable, though it is still a lot of legwork to set up. We'd need to pre-fetch all dependencies, including the Electron binaries, place them in a cache, and update electron-builder so that it can find these cached dependencies when run inside FlatHub's builders.

Another option is to copy VSCode's method and ship the entire DEB as an extra-data field and then have the build script just unpack this into the sandbox.

Separately, the permissions story for FlatHub is pretty tricky. We would likely want to add first-run script that would copy WSH into the main filesystem and then WaveSrv can use a socket to communicate with it.

Anything else?

No response

esimkowitz avatar Oct 21 '24 21:10 esimkowitz

:wave: Hey there, Any news on that ?

Chepycou avatar Dec 19 '24 18:12 Chepycou

No news, probably won't get to this until the new year. If someone else wants to take this on, more than happy to hand-off.

esimkowitz avatar Dec 19 '24 19:12 esimkowitz

Hi,

We're very well into the new year now

KaKi87 avatar Sep 08 '25 04:09 KaKi87

I don't work for Wave anymore and frankly don't have the time to devote to this, happy to hand off the work to someone else and review whatever gets submitted.

esimkowitz avatar Sep 08 '25 09:09 esimkowitz