PW_LOL 1.43 KB
Newer Older
1
#!/usr/bin/env bash
castro-fidel's avatar
castro-fidel committed
2
# Author: Castro-Fidel (linux-gaming.ru)
3
########################################################################
castro-fidel's avatar
castro-fidel committed
4 5
export PW_PREFIX_NAME="LEAGUE_OF_LEGENDS"
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/live.na.exe"
6
export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live"
castro-fidel's avatar
castro-fidel committed
7 8
export PW_MUST_HAVE_DLL=""
export PW_VULKAN_USE=1
Mikhail Tergoev's avatar
Mikhail Tergoev committed
9 10
export PW_WINE_USE=WINE_LOL_GE_8.27
# export WINEDLLOVERRIDES="mscoree,mshtml="
castro-fidel's avatar
castro-fidel committed
11
export PW_USE_D3D_EXTRAS=1
12
export DISABLE_CP_DEFPFX=1
13

14 15
gui_proton_downloader silent "${PW_WINE_USE}"

16
pw_clear_pfx
17
start_portwine
18
wait_wineserver
Mikhail Tergoev's avatar
Mikhail Tergoev committed
19
if try_download "https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
20
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
21 22
    pw_start_progress_bar_block "Installing League of Legends."
    if [[ "$LANGUAGE" == "ru" ]] ; then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
23 24 25 26
        yad_info "Вы должны нажать кнопку установки, не изменяя настроек!"
    else
        yad_info "You must click the install button without changing the settings!"
    fi
castro-fidel's avatar
castro-fidel committed
27 28
    pw_kill_autostart RiotClientServices.exe &
    pw_run "${PW_AUTOINSTALL_EXE}" 
29
    portwine_exe="$WINEPREFIX/drive_c/Riot Games/Riot Client/RiotClientServices.exe"
castro-fidel's avatar
castro-fidel committed
30
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
31
    try_remove_file "${portwine_exe}.ppdb"
32
    kill_portwine
castro-fidel's avatar
castro-fidel committed
33
    pw_stop_progress_bar
34 35 36 37
    export PORTWINE_CREATE_SHORTCUT_NAME="League of Legend"
    portwine_create_shortcut
fi
stop_portwine