Skip to content

Instantly share code, notes, and snippets.

@scottlinux
Forked from AnonymerNiklasistanonym/mf_install_helper.sh
Last active October 22, 2023 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottlinux/930238ed1ecbccd6f6b06bb2cea36ca6 to your computer and use it in GitHub Desktop.
Save scottlinux/930238ed1ecbccd6f6b06bb2cea36ca6 to your computer and use it in GitHub Desktop.
Helping script that automatically installs the Media Foundation workaround for Wine (https://github.com/z0z0z/mf-install) to the latest Proton Version
#!/usr/bin/env bash
#
rm -rf mf-install
git clone --depth=1 https://github.com/z0z0z/mf-install.git
cd mf-install
GRIS_STEAM_ID=683320
PUMMEL_PARTY_STEAM_ID=880940
# Select which game should be updated
STEAM_ID=$GRIS_STEAM_ID
STEAM_APPS_DIRECTORY="$HOME/.steam/steam/steamapps/common"
STEAM_APPS_DIRECTORY_COMMON="$STEAM_APPS_DIRECTORY/common"
LATEST_PROTON_DIR=""
for i in $STEAM_APPS_DIRECTORY_COMMON/Proton*; do
LATEST_PROTON_DIR="$i"
done
export WINEPREFIX="$STEAM_APPS_DIRECTORY/compatdata/$STEAM_ID/pfx"
export PROTON="$LATEST_PROTON_DIR"
echo "WINEPREFIX:"
echo $WINEPREFIX
echo "PROTON:"
echo $PROTON
./mf-install.sh -proton
cd ..
@Cgboal
Copy link

Cgboal commented Apr 30, 2020

For anyone trying to use this and having issues, i had to change

STEAM_APPS_DIRECTORY="$HOME/.steam/steam/steamapps/common"

to

STEAM_APPS_DIRECTORY="$HOME/.steam/steam/steamapps"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment