PW_EAAPP 1.07 KB
Newer Older
Mikhail Tergoev's avatar
Mikhail Tergoev committed
1 2 3 4 5
#!/usr/bin/env bash
# Author: Castro-Fidel (linux-gaming.ru)
########################################################################
export LAUNCH_PARAMETERS=("/silent" "/repair" )
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EAappInstaller.exe"
6 7 8
export PORTWINE_CREATE_SHORTCUT_NAME="EALauncher"
export PW_VULKAN_USE="2"
export PW_WINE_USE="PROTON_LG"
9
export PW_PREFIX_NAME="EAAPP"
10
export PW_USE_EAC_AND_BE="1"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
11 12

start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
13
if try_download "https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EAappInstaller.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
Mikhail Tergoev's avatar
Mikhail Tergoev committed
14
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
15
    pw_start_progress_bar_install_game "EA Launcher."
16
    pw_kill_autostart EABackgroundSer 5 please &
17
    create_new_dir "$WINEPREFIX/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
18 19 20 21
    pw_run "${PW_AUTOINSTALL_EXE}"
    portwine_exe="$WINEPREFIX/drive_c/Program Files/Electronic Arts/EA Desktop/EA Desktop/EALauncher.exe"
    pw_stop_progress_bar
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
22
    try_remove_file "${portwine_exe}.ppdb"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
23 24 25
    kill_portwine
    portwine_create_shortcut
fi
Mikhail Tergoev's avatar
Mikhail Tergoev committed
26
stop_portwine