PP_LOL 1.81 KB
Newer Older
1
#!/usr/bin/env bash
castro-fidel's avatar
castro-fidel committed
2
# Author: Castro-Fidel (linux-gaming.ru)
3
########################################################################
4 5
export PP_PREFIX_NAME="LEAGUE_OF_LEGENDS"
export PP_AUTOINSTALL_EXE="${PP_USER_TEMP}/live.na.exe"
6
export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live"
7 8 9
export PP_MUST_HAVE_DLL=""
export PP_VULKAN_USE=1
export PP_WINE_USE=WINE_LOL_GE_7.0-4
Mikhail Tergoev's avatar
Mikhail Tergoev committed
10
export WINEDLLOVERRIDES="mscoree,mshtml="
11
export PP_USE_D3D_EXTRAS=1
12

13 14 15 16 17
if [ ! -d "${PORT_WINE_PATH}/data/dist/${PP_WINE_USE}" ] ; then
    if try_download "github.com/Castro-Fidel/wine_builds/releases/download/${PP_WINE_USE}/${PP_WINE_USE}.tar.xz" \
    "${PORT_WINE_PATH}/data/tmp/${PP_WINE_USE}.tar.xz" ; then
        if unpack_tar_xz "${PORT_WINE_PATH}/data/tmp/${PP_WINE_USE}.tar.xz" "${PORT_WINE_PATH}/data/dist/" ; then
            try_remove_file "${PORT_WINE_PATH}/data/tmp/${PP_WINE_USE}.tar.xz"
18 19
            UNPACK_STATUS=0
        else
20 21
            try_remove_file "${PORT_WINE_PATH}/data/tmp/${PP_WINE_USE}.tar.xz"
            try_remove_dir "${PORT_WINE_PATH}/data/dist/${PP_WINE_USE}"
22 23 24 25 26
        fi
    fi
    [[ "${UNPACK_STATUS}" != 0 ]] && exit 1
fi
start_portwine
27
if try_download "lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.exe" "${PP_AUTOINSTALL_EXE}"
28
then
29
    pp_start_progress_bar_block "Installing League of Legends. Please wait..."
30
    zenity --info --width=500 --text "You must click the install button without changing the settings!"   
31 32
    pp_kill_autostart RiotClientServices.exe &
    pp_run "${PP_AUTOINSTALL_EXE}" 
33
    portwine_exe="$WINEPREFIX/drive_c/Riot Games/Riot Client/RiotClientServices.exe"
34
    try_remove_file "${PP_AUTOINSTALL_EXE}"
35
    kill_portwine
36
    pp_stop_progress_bar
37 38 39 40
    export PORTWINE_CREATE_SHORTCUT_NAME="League of Legend"
    portwine_create_shortcut
fi
stop_portwine