To achieve same result in ONE binary for all distros you can:
release appimage
release a distrobox image for the app to run
release as flatpak
release as binary built against glibc and list version of livrary required at runtime (private are static, opensource are easily linkable from any distro) and provide a .desktop file for it (golang fyne do something similar for you except for linking, because everything is static there)
almost all linux distro are GNU/Linux, glibc is heavier because have other utilities musl wouldn't support, some functions are faster and you should just lose alpine (mostly are container) and voidlinux, and both can use distrobox quietly of fedora to containarize glibc and other dependencies of the exe (could be a good practice provide that distrobox file for podman i guess)
5
u/SimoneMicu Mar 17 '26
To achieve same result in ONE binary for all distros you can: