Feel free to submit a PR.
wine="$WINE"
wine64="${WINE}64"
wineboot="${WINE} wineboot"
This will work with all custom wine builds, including Proton or Proton-GE builds. The only remaining issue is if you do not use WINE=/path_to_wine_binary, you will end up with an error, but this issue can be fixed with this script:
if [ -n "$WINE" ]; then
wine="$WINE"
wine64="${WINE}64"
wineboot="${WINE} wineboot"
fi
if [ -z "$WINE" ]; then
wine="wine"
wine64="wine64"
wineboot="wineboot"
fi
I tested it, and it works without any issues.
proton 6.13-ge-1x1 2021-07
replace
to something like
example from Proton-6.13-GE-1/protonfixes/winetricks