Scripts version 2206

This commit is contained in:
Mikhail Tergoev
2023-07-07 16:53:47 +03:00
parent d247a7be11
commit 078efd5966
7 changed files with 26 additions and 14 deletions

View File

@ -5,9 +5,6 @@ export LAUNCH_PARAMETERS=("/VERYSILENT")
export PW_PREFIX_NAME="GW2"
export WINEDLLOVERRIDES="mscoree,mshtml="
export PW_MUST_HAVE_DLL=""
# export PW_WINE_USE="WINE_8.5_LG"
pw_clear_pfx
# gui_proton_downloader silent "WINE_8.5_LG"
start_portwine
mkdir -p "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/"
@ -16,13 +13,13 @@ export PW_AUTOINSTALL_EXE="${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2S
if try_download "https://s3.amazonaws.com/gw2cdn/client/branches/Gw2Setup-64.exe" "${PW_AUTOINSTALL_EXE}"
then
pw_start_progress_bar_block "${loc_gui_installing_the} Guild Wars 2. ${loc_gui_please_wait} "
pw_kill_autostart Gw2-64.exe 3 &
cd "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/"
pw_kill_autostart Gw2.exe 3 &
pw_run "${PW_AUTOINSTALL_EXE}"
portwine_exe="${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2-64.exe"
portwine_exe="${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/Gw2.exe"
try_remove_file "${PW_AUTOINSTALL_EXE}"
try_remove_file "${portwine_exe}.ppdb"
kill_portwine
mv -f "${WINEPREFIX}/drive_c/users/steamuser/Temp/"* "${WINEPREFIX}/drive_c/Program Files/Guild Wars 2/"
pw_stop_progress_bar
export PORTWINE_CREATE_SHORTCUT_NAME="Guild Wars 2"
portwine_create_shortcut