Any way of using a custom compiled variant of wine for a script?

The current script for fallout 4 is somewhat outdated, doesn’t work for me personally and doesn’t allow godrays. Unfortunately the only way of fixing those issues is with a custom dsound patch, and a bunch of wine-staging patches on wine 3.3.

There is a tutorial for how to install it but some users don’t feel confident building from scratch, so I came here in hopes of making a easy 1 click installer.

However as far as I am aware there is no way of building wine from scratch in a lutris script. Is there another way of accomplishing this goal?

I’d like to know something similar. I want to apply a patch to wine but I can’t figure out how to do so.