Last active
September 1, 2021 11:15
-
-
Save umberto10/cf6555a3f49475d9532819b5cdca6c8b to your computer and use it in GitHub Desktop.
AmongUs TheOtherRoles linux mod updater :v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# update mod https://github.com/Eisbison/TheOtherRoles script | |
GDIR="${HOME}/.steam/steam/steamapps/common/Among Us" # steam game dir | |
WINPFX="${HOME}/.steam/steam/steamapps/compatdata/945360/pfx" # wine prefix for among us | |
JDIR="${WINPFX}/drive_c/users/steamuser/AppData/LocalLow/Innersloth/Among Us" # dir for regionInfo.json (custom server) | |
read -p "START THE GAME NORMAL BEFORE APPLYING THE MOD!" | |
echo "checking release..." | |
VERLINK=$(curl -s https://api.github.com/repos/Eisbison/TheOtherRoles/releases/latest \ | |
| grep "browser_download_url.*zip" \ | |
| cut -d : -f 2,3 \ | |
| tr -d '\" ') | |
echo "getting release from ${VERLINK}..." | |
wget -q ${VERLINK} | |
echo "unzipping release..." | |
unzip -o -qq *.zip -d "${GDIR}" | |
# only if u change the mod on your own (cusotm servers) | |
if [ -e TheOtherRoles.dll ]; then | |
echo "copying dll..." | |
cp -v *.dll "${GDIR}/BepInEx/plugins" | |
fi | |
# only for custom servers | |
if [ -e regionInfo.json ]; then | |
echo "copying json..." | |
cp -v regionInfo.json "${JDIR}" | |
fi | |
# cleanup | |
rm -f TheOtherRoles.zip | |
# winhttp enable | |
echo "adding winhttp dll..." | |
WINEPREFIX="${WINPFX}" wine reg add 'HKCU\Software\Wine\DllOverrides' /v winhttp /d native,builtin /f &> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment