From b43f5a423c009be43d3ffd2e18c7cb6920578d6c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 2 Dec 2023 16:39:06 -0500 Subject: [PATCH] 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. --- audiogame-manager.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 34d039e..1e04b09 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -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"