Fix VRChat path in the Linux install Script (#789)

This commit is contained in:
guerryer
2024-05-28 18:52:38 -04:00
committed by GitHub
parent 45dfc82afc
commit 9f2a7eb251
+6 -6
View File
@@ -2,7 +2,7 @@
# Made by galister # Made by galister
# change me # change me
steamapps=$HOME/.local/share/Steam/steamapps steamapps=$HOME/.local/share/Steam/steamapps/compatdata
download_url=https://github.com/vrcx-team/VRCX/releases/download/v2024.03.23/VRCX_20240323.zip download_url=https://github.com/vrcx-team/VRCX/releases/download/v2024.03.23/VRCX_20240323.zip
export WINEPREFIX=$HOME/.local/share/vrcx export WINEPREFIX=$HOME/.local/share/vrcx
@@ -34,18 +34,18 @@ if [[ ! -d $WINEPREFIX ]]; then
fi fi
fi fi
if [[ ! -d $steamapps ]] && [[ -d $HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps ]]; then if [[ ! -d $steamapps ]] && [[ -d $HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata ]]; then
echo "Flatpak Steam detected." echo "Flatpak Steam detected."
steamapps=$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps steamapps=$HOME/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/compatdata
fi fi
vrc_appdata=$steamapps/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat vrc_appdata=$steamapps/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat
vrc_dst=$WINEPREFIX/drive_c/users/$USER/AppData/LocalLow/VRChat/VRChat vrc_dst=$WINEPREFIX/drive_c/users/$USER/AppData/LocalLow/VRChat/VRChat
if [[ -d $vrc_appdata ]]; then if [[ ! -d $vrc_appdata ]]; then
echo "No VRC installation detected." echo "No VRC installation detected."
echo "If you want to use VRC on this computer, please install it now and start it once." echo "If you want to use VRC on this computer, please install it now and start it once."
echo "Otherwise, you will lose out on some features, like " echo "Otherwise, you will lose out on some features, like Game Log"
read -p "Press enter to continue" read -p "Press enter to continue"
fi fi
@@ -74,7 +74,7 @@ wine64 $WINEPREFIX/drive_c/vrcx/VRCX.exe -no-cef-sandbox' >~/.local/share/vrcx/d
chmod +x ~/.local/share/vrcx/drive_c/vrcx/vrcx chmod +x ~/.local/share/vrcx/drive_c/vrcx/vrcx
if [[ -d ~/.local/bin ]]; then if [[ -d ~/.local/bin ]]; then
echo "Install vrcx to ~/.local/bin" echo "Install VRCX to ~/.local/bin"
ln -s ~/.local/share/vrcx/drive_c/vrcx/vrcx ~/.local/bin/vrcx || true ln -s ~/.local/share/vrcx/drive_c/vrcx/vrcx ~/.local/bin/vrcx || true
fi fi