forked from CastroFidel/PortWINE
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:
@ -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}"
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user