Here's one I spotted a few weeks back, just so you know I'm not making shit up:
https://docs.waydro.id/usage/install-on-desktops (see Ubuntu section)
Re:How to destroy your OS with tar
by prmoustache on Saturday May 25, 2024 @06:08PM
(#40478210)
If it is not provided by the distribution, those things shouldn't go in /usr/bin|lib|share but in /usr/local/bin|lib|share
That's a reasonable practice, yes, if you're doing a manual direct install. In situations like this, though, I typically just write a quick PKGBUILD script so the package manager can manage it, which means pointing things at the direct /usr/* paths, not /usr/local/*.
This is far, far less complex than having to maintain and distribute an entire bundled runtime environment, deal with inconsistent behavior with the local config, etc. Flatpak and AppImage have their use cases, but by no means are they simpler than just putting binaries in the right places -- they are in fact an entire additional layer of complexity.