Help enable custom mesa in Heroic flatpak/steamdeck and none-flatpak

So first of all, a big Hi to the community from me.
I would like to run Alan Wake 2 in Heroic Game Launcher. I know it needs a development version of mesa to be installed to remove some graphical bugs. I compiled the development version (24.0.0) and it runs great. Tested in Jedi Survivor. But how do I get that driver to run on heroic?
I should also say that this driver version is not installed system wide because I don't want to remove my current stable drivers. Only to be used in some games.
In steam this can be done by adding "sh ~/mesa-run.sh %command% Mesa-run.sh is the executable pointing to all that is needed to run the driver without installing system wide.
Lutris can be done by adding an environment variable like this "VK_ICD_FILENAMES=/home/user/mesa/share/vulkan/icd.d/radeon_icd.x86_64.json"
Only only thing missing now is figuring it out for Heroic. Someone mentioned by adding the driver as a wrapper, but I have no idea what that even means. Do I add the sh file to the wrapper section? I did that but no luck.

Any help would be great, and probably help more in the future.
Was this page helpful?