I never noticed xdg-install.sh, neat! You don't need sudo for it though. Just ./xdg-install.sh will install it for your user.
On Steam Deck I found it inconvenient to get a build system because that requires some extra steps to make the image mutable, that I worry an update will wipe out, so I added the Windows version instead and set it to use Proton.