20 lines
1.3 KiB
Bash
Executable File
20 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Update from the patch channel (OctoUpdater.exe + OctoUpdater.cfg), then start OctoWoW under GE-Proton (DXVK + vkd3d-proton, Vulkan).
|
|
# Linux only; on Windows double-click OctoUpdater.exe in the client folder.
|
|
# Several clients at once: run this again while one is open. umu/Proton would queue a second launch in the same prefix
|
|
# until the first game exits (waitforexitandrun + umu.exe), so extra instances start WowB.exe directly with Proton's
|
|
# wine and the running client's environment (same prefix, same wineserver). Updates install when all clients are closed.
|
|
ROOT=/mnt/Games/OctoWoW-Windows-Client; GAME=$ROOT/_classic_beta_
|
|
cd "$GAME" || exit 1
|
|
export WINEPREFIX=/mnt/Games/@project/wine-prefixes/octo-final7-baseline-20261121
|
|
export GAMEID=umu-0 PROTONPATH="$HOME/.local/share/Steam/compatibilitytools.d/GE-Proton11-12-x86_64" WINEDEBUG=-all
|
|
for p in $(pgrep -x WowB.exe); do
|
|
tr '\0' '\n' < /proc/$p/environ 2>/dev/null | grep -qxE "STEAM_COMPAT_INSTALL_PATH=($GAME|${GAME%/*})/?" || continue
|
|
while IFS= read -r line; do
|
|
case "$line" in WINESERVERSOCKET=*|WINELOADERNOEXEC=*|WINEPRELOADRESERVE=*|PROTON_VERB=*) ;;
|
|
WINE*|DXVK*|VKD3D*|PROTON*|STEAM_COMPAT*|LD_LIBRARY_PATH=*) export "$line";; esac
|
|
done < <(tr '\0' '\n' < /proc/$p/environ)
|
|
exec "$PROTONPATH/files/bin/wine" ./WowB.exe
|
|
done
|
|
exec umu-run ../OctoUpdater.exe
|