-
I tried to generate and run a flatpak locally with this manifest, but I get an exception when testing the flatpak. Manifest
Terminal's stacktrace
Here a zip file with the compiled program and the flatpak manifest. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
I would really like to get this working but am not familiar with flatpak at all. Does it need the shared libraries in the pak file? |
Beta Was this translation helpful? Give feedback.
-
@loloof64 I believe you're just missing Every Flatpak manifest must specify what permissions it needs, and for X11/Wayland desktop apps you need a bare minimum of ... finish-args:
# Window Manager
- '--share=ipc'
- '--socket=fallback-x11'
- '--socket=wayland' Just add that after the I created a In my case I also needed to add the I also used a more recent SDK version, v3.38 rather than v3.26. Long story short, try this while using your local binary as input... app-id: com.loloof64.HelloWailsVue
runtime: org.gnome.Platform
runtime-version: '3.38'
sdk: org.gnome.Sdk
command: HelloWails
finish-args:
# Window Manager
- '--share=ipc'
- '--socket=fallback-x11'
- '--socket=wayland'
- '--device=dri'
modules:
- name: HelloWails
buildsystem: simple
build-commands:
- install -D HelloWails /app/bin/HelloWails
sources:
- type: file
path: HelloWails My manifest that builds the binary too is at https://github.com/ianmjones/wails-flatpak/blob/main/com.ianmjones.wails-flatpak.yml However, I had problems with getting Have fun! |
Beta Was this translation helpful? Give feedback.
-
I thought I will follow up on my own experiments. I have very little experience with building flatpaks but I have gotten a build to work using the latest Wails Mainly by basing my work off Cinny and the work of @ianmjones My current WIP manifest looks like this. I am not sure if its the correct approach and it takes ages to build the first time as you are building webkit from source. But it works for me. In the future it would be nice that the steps are in a base runtime that we can use in the same way as you can for electron apps.
You will also need to add the flathub shared module
|
Beta Was this translation helpful? Give feedback.
-
For anyone interersted, here's my workflow, without building webkit Step 1: Build flatpak and extract binaryBuild the Flatpak using GitHub actionsAction Flatpak manifest uses Gnome 3.38 Add the produced binary to the release, or somewhere else where you have access to it. We will use it later when publishing to Flathub. - name: "Add to release"
uses: softprops/action-gh-release@v2
with:
files: |
Resticity.flatpak # add bundle
/__w/resticity/resticity/flatpak_app/files/bin/resticity # add binary Step 2: Publish to FlathubFlatpak manifest uses Gnome 3.38 |
Beta Was this translation helpful? Give feedback.
@loloof64 I believe you're just missing
finish-args
in the Flatpak manifest.Every Flatpak manifest must specify what permissions it needs, and for X11/Wayland desktop apps you need a bare minimum of ...
Just add that after the
command
entry and you should be good to go.I created a
wails-flatpak
test repo at https://github.com/ianmjones/wails-flatpak, and progressed it from including a local binary to building it too. I did this as two parts of my Always Developing YouTube channel. As I write this, the second part (session 56) that actually solves your problem isn't up on YouTube yet, but…