2022-01-01 18:11:03 +00:00
|
|
|
#!/bin/bash
|
2022-01-14 18:41:46 +00:00
|
|
|
PATH=$(dirname "$(readlink -f "${0}")")/..:$PATH
|
2022-03-24 22:25:24 +00:00
|
|
|
DIR=/tmp/appdwarf/proton
|
2022-01-01 18:11:03 +00:00
|
|
|
mkdir -p $DIR
|
|
|
|
|
|
|
|
LINK="$(curl https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases | grep -om1 http.\*tar.gz)"
|
2022-01-14 18:41:46 +00:00
|
|
|
curl -L "$LINK" | tar xz -C$DIR
|
2022-01-01 18:11:03 +00:00
|
|
|
mv $DIR/Proton*/files/* $DIR
|
|
|
|
rm -rf $DIR/Proton*/
|
|
|
|
|
|
|
|
wget -O$DIR/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
|
|
|
|
chmod +x $DIR/winetricks
|
|
|
|
|
|
|
|
cat > $DIR/AppRun << 'EOF'
|
|
|
|
#!/bin/bash
|
|
|
|
HERE="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
|
|
|
|
|
|
export WINE="${HERE}"/bin/wine
|
|
|
|
export WINE64="${HERE}"/bin/wine64
|
|
|
|
export WINESERVER="${HERE}"/bin/wineserver
|
|
|
|
export WINETRICKS="${HERE}"/winetricks
|
|
|
|
export DXVK_STATE_CACHE_PATH=~/.cache DXVK_LOG_PATH=none
|
|
|
|
|
|
|
|
if [ "$1" = "winetricks" ]; then
|
|
|
|
if [ $# -ge 2 ]; then
|
|
|
|
shift
|
|
|
|
"${WINETRICKS}" "$@"
|
|
|
|
else
|
|
|
|
"${WINETRICKS}" --help
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
"${WINE}" "$@"
|
|
|
|
"${WINESERVER}" -w
|
|
|
|
fi
|
|
|
|
EOF
|
|
|
|
chmod +x $DIR/AppRun
|
|
|
|
|
|
|
|
appdwarf $DIR $@
|
|
|
|
rm -rf $DIR
|
|
|
|
mv $DIR.sh proton
|