Conjury updated to install to a directory under Program Files instead of just plopping everything into that folder. The code for getting this installed is still new, so please let me know if there are any problems.

This commit is contained in:
Storm Dragon 2023-12-02 16:39:06 -05:00
parent a605139210
commit b43f5a423c
1 changed files with 7 additions and 6 deletions

View File

@ -426,10 +426,6 @@ get_steam() {
--infobox "This installer requires steamcmd. Please install steamcmd and try again." -1 -1
exit 1
fi
# Get Steam user name.
steamUser="$(dialog --ok-label "Continue" \
--backtitle "Audiogame Manager" \
--inputbox "Please enter your Steam user name:" -1 -1 --stdout)"
# Create message for dialog.
local message="Make sure ${game} is available in your Steam library and press enter to continue. The URL for ${game} is $2"
if echo "$2" | xclip -selection clipboard 2> /dev/null ; then
@ -438,8 +434,13 @@ get_steam() {
dialog --ok-label "Continue" \
--backtitle "Audiogame Manager" \
--msgbox "$message" -1 -1
# Get Steam user name.
steamUser="$(dialog --ok-label "Continue" \
--backtitle "Audiogame Manager" \
--inputbox "Please enter your Steam user name:" -1 -1 --stdout)"
# Download the game
steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "$WINEPREFIX/drive_c/Program Files/" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \
mkdir -p "${WINEPREFIX}/drive_c/Program Files/${game}"
steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir "${WINEPREFIX}/drive_c/Program Files/" +login "$steamUser" +app_update "$1" +quit || { dialog --backtitle "Audiogame Manager" \
--infobox "Something went wrong. Please make sure you have a stable internet connection, and if the problem persists, contact audiogame-manager's developers." -1 -1
exit 1; }
}
@ -1952,7 +1953,7 @@ download "https://erion.cf/files/ag_103.zip"
install_wine_bottle
get_steam 2684520 "https://store.steampowered.com/app/2684520/Conjury/"
find "$WINEPREFIX" -type f -name 'nvdaControllerClient.dll' -exec cp -v "$cache/nvda2speechd64.dll" "{}" \;
add_launcher 'c:\Program Files\release\Conjury.exe'
add_launcher 'c:\Program Files\Conjury\release\Conjury.exe'
;;
"Constant Battle")
export winVer="win7"