Update Auto Installs

1) Deleted the db file for repacks from xatab since there are no more problems with them
2) Added the creation of a separate prefix for LGC and WGC so as not to update the default one every time (I did it according to the example from VK Play)
This commit is contained in:
Boria138
2023-09-22 00:16:08 +06:00
parent 0aa39f1da1
commit c53dc5b31e
5 changed files with 8 additions and 29 deletions

View File

@ -3,6 +3,7 @@
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Lesta_Game_Center_Install_RU.exe"
export PW_PREFIX_NAME="LGC"
try_download_lgc () {
set -o pipefail
@ -12,6 +13,8 @@ try_download_lgc () {
[ "${PIPESTATUS[0]}" != 0 ] && print_error "failed to download $1. Scipping." && return 1 || return 0
}
pw_clear_pfx
gui_proton_downloader silent "PROTON_LG_8-4"
start_portwine
if try_download_lgc "redirect.lesta.ru/LGC/Lesta_Game_Center_Install_RU.exe" "${PW_AUTOINSTALL_EXE}"

View File

@ -4,6 +4,7 @@
export LAUNCH_PARAMETERS=("/VERYSILENT")
[ "${update_loc}" = "RUS" ] && export WGC_LOC=RU || export WGC_LOC=EU
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe"
export PW_PREFIX_NAME="WGC"
try_download_wgc () {
set -o pipefail
@ -13,6 +14,8 @@ try_download_wgc () {
[ "${PIPESTATUS[0]}" != 0 ] && print_error "failed to download $1. Scipping." && return 1 || return 0
}
pw_clear_pfx
gui_proton_downloader silent "PROTON_LG_8-4"
start_portwine
if try_download_wgc "redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" "${PW_AUTOINSTALL_EXE}"
then