if try_download "github.com/Castro-Fidel/PortWINE/releases/download/libs${PW_LIBS_VER}/libs${PW_LIBS_VER}.tar.xz""${PORT_WINE_TMP_PATH}/libs${PW_LIBS_VER}.tar.xz";then
if try_download "github.com/Castro-Fidel/PortWINE/releases/download/libs${PW_LIBS_VER}/libs${PW_LIBS_VER}.tar.xz"\
print_info "Download and install ${PW_WINE_USE}..."
if try_download "github.com/Castro-Fidel/wine_builds/releases/download/${PW_WINE_USE}/${PW_WINE_USE}.tar.xz""${PORT_WINE_PATH}/data/tmp/${PW_WINE_USE}.tar.xz";then
if try_download "github.com/Castro-Fidel/wine_builds/releases/download/${PW_WINE_USE}/${PW_WINE_USE}.tar.xz"\
print_info "Download and install DXVK v.${DXVK_VAR_VER}"
if try_download "https://github.com/Castro-Fidel/vulkan/releases/download/dxvk-${DXVK_VAR_VER}/dxvk-${DXVK_VAR_VER}.tar.xz""${PW_VULKAN_DIR}/dxvk-${DXVK_VAR_VER}.tar.xz";then
if try_download "https://github.com/Castro-Fidel/vulkan/releases/download/dxvk-${DXVK_VAR_VER}/dxvk-${DXVK_VAR_VER}.tar.xz"\
print_info "Download and install VKD3D-PROTON v.${VKD3D_VAR_VER}"
if try_download "https://github.com/Castro-Fidel/vulkan/releases/download/vkd3d-proton-${VKD3D_VAR_VER}/vkd3d-proton-${VKD3D_VAR_VER}.tar.xz""${PW_VULKAN_DIR}/vkd3d-proton-${VKD3D_VAR_VER}.tar.xz";then
if try_download "https://github.com/Castro-Fidel/vulkan/releases/download/vkd3d-proton-${VKD3D_VAR_VER}/vkd3d-proton-${VKD3D_VAR_VER}.tar.xz"\
PW_NOTIFY_TEXT="Please wait for update PortProton"
pw_notify_send -u critical
if try_download_silent "github.com/Castro-Fidel/wine_builds/releases/download/plugins${PW_PLUGINS_VER}/plugins${PW_PLUGINS_VER}.tar.xz""${PORT_WINE_TMP_PATH}/plugins${PW_PLUGINS_VER}.tar.xz";then
if try_download_silent "github.com/Castro-Fidel/wine_builds/releases/download/plugins${PW_PLUGINS_VER}/plugins${PW_PLUGINS_VER}.tar.xz"\
if curl -s--list-only--connect-timeout 3 "https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/scripts/var">"${PORT_WINE_TMP_PATH}/curent_var_ver"
if curl -f-s--list-only--connect-timeout 3 "https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/data_from_portwine/scripts/var">"${PORT_WINE_TMP_PATH}/curent_var_ver"
if curl -s--list-only--connect-timeout 3 "https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/raw/master/data_from_portwine/scripts/var">"${PORT_WINE_TMP_PATH}/curent_var_ver"
if curl -f-s--list-only--connect-timeout 3 "https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/raw/master/data_from_portwine/scripts/var">"${PORT_WINE_TMP_PATH}/curent_var_ver"
W_TRX_INT_VER="$(cat"${PORT_WINE_TMP_PATH}/winetricks" | grep-i'WINETRICKS_VERSION=' | sed's/WINETRICKS_VERSION=//')"&& print_info "Winetricks version in port has been updated (${W_TRX_INT_VER})"
if try_download_game"https://caliber-files.gcdn.co/caliber-s3/p1/a88c3b70f76a0e56b1e08b62c9895cfe/launcher/setup/CaliberSetup.exe""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://caliber-files.gcdn.co/caliber-s3/p1/a88c3b70f76a0e56b1e08b62c9895cfe/launcher/setup/CaliberSetup.exe""${PW_AUTOINSTALL_EXE}"
if try_download_game"https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi""${PW_AUTOINSTALL_EXE}"
then
pw_start_progress_bar_block "Installing Epic Games Launcher. ${loc_gui_please_wait} "
if try_download_game"https://content-system.gog.com/open_link/download?path=/open/galaxy/client/${GOG_VER}/setup_galaxy_${GOG_VER}.exe""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://content-system.gog.com/open_link/download?path=/open/galaxy/client/${GOG_VER}/setup_galaxy_${GOG_VER}.exe""${PW_AUTOINSTALL_EXE}"
if try_download_game"https://github.com/RPCS3/rpcs3-binaries-win/releases/download/build-9fce70809ee06a7e61a3dbe5bb9b0179fc541d9f/rpcs3-v0.0.29-15676-9fce7080_win64.7z""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://github.com/RPCS3/rpcs3-binaries-win/releases/download/build-9fce70809ee06a7e61a3dbe5bb9b0179fc541d9f/rpcs3-v0.0.29-15676-9fce7080_win64.7z""${PW_AUTOINSTALL_EXE}"
if try_download_game"https://github.com/visualboyadvance-m/visualboyadvance-m/releases/latest/download/visualboyadvance-m-Win-x86_64.zip""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://github.com/visualboyadvance-m/visualboyadvance-m/releases/latest/download/visualboyadvance-m-Win-x86_64.zip""${PW_AUTOINSTALL_EXE}"
[[!-z"$WOSB_VERSION"]]&& print_info "Found version: $WOSB_VERSION"|| yad_error "Error while get version of WOSB INSTALLER."
start_portwine
if try_download_game"https://installer.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/${WOSB_VERSION}/bin/installer.exe""${PW_AUTOINSTALL_EXE}"
if try_download_no_mirror"https://installer.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/${WOSB_VERSION}/bin/installer.exe""${PW_AUTOINSTALL_EXE}"
then
pw_start_progress_bar_block "Installing World of Sea Battle. ${loc_gui_please_wait} "