Tauri 2 Beta bundle for Linux with "all needed depencies" included (not need to install WebKit2GTK-4.1 etc on all target machines) #10026
-
Hi, Building is not a problem, I have gotten that to work in a Docker container on my Macbook (Intel) as well as in my Gitlab pipeline, but when I then try to run the binary on Linux machine it won't work due to the missing libraries. I have tried to export misc .so-files from the Docker container / Gitlab pipeline and bundle them with the binary when I try to install the app at the target Linux machine, but I have not been successful with this. Anyone that has done this? Is it even possible? Thanks in advance! /Per |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Did you try the .AppImage bundle? This is pretty much their main purpose. The appimage will include all dependencies it needs, hence its size, so it works on non-ubuntu distros too, as long as they glibc version is the same or newer, which means you'll have to build on the oldest system you want the app to run on (in ubuntu terms that's at least 22.04 for v2). I tried many times to make the appimage backwards compatible (for example build on 22.04, run on 20.04) but it never worked out :/ |
Beta Was this translation helpful? Give feedback.
-
try this solution: |
Beta Was this translation helpful? Give feedback.
Yeah, that's the glibc problem. There's no easy way around that sadly (if building on older systems doesn't work). Really one of the biggest problems we have with linux.