WEM: Wine Environment Manager

WEM is a tool for managing wine "envs" or prefixes. Inspired by Lutris and rbenv.

It handles setting various wine options such as WINEPREFIX, installing extras such as DXVK/VKD3D-Proton, and more. View the full documentation here or bundled with the download. The issue tracker can be found here.


Running The Elder Scrolls III: Morrowind GOTY Edition from GOG.com*:

# Download
wget https://wem.hristos.co/files/wem.tar.bz2

# Extract
tar xf wem.tar.bz2

# Install to someplace in $PATH, make sure you've got wine and winetricks too
mv wem/wem $HOME/.local/bin

# Initialize the env
wem init morrowind \
    --dxvk-version 2.3 \
    --gog-silent-install \
    --install-exe "{{.InstallWorkDir}}/setup_tes_morrowind_goty_2.0.0.7.exe" \
    --install-expected "{{.RunExe}}" \
    --install-workdir $HOME/games \
    --quiet-run \
    --run-exe "{{.RunWorkDir}}/Morrowind.exe" \
    --run-prefix "mangohud" \
    --run-workdir "{{.WinePrefix}}/drive_c/game" \
    --virtualdesktop 1920x1080 \
    --wine-dlloverrides "d3d8=n,b;MWSE=n,b;csse=n,b"

# Install, then run the game
wem run morrowind

# Easily run arbitrary executables in the env context
wem run morrowind --exec "MGEXEgui.exe" --no-virtualdesktop

wem run morrowind --exec "TES Construction Set.exe" --no-virtualdesktop

wem run morrowind --exec "MWSE-Update.exe" --no-virtualdesktop

See the documentation for more details.

* In the above example, DXVK, the run-prefix, and wine-dlloverrides are used for MWSE, not the vanilla Morrowind game.