PW_IGCLIENT 893 Bytes
Newer Older
Mikhail Tergoev's avatar
Mikhail Tergoev committed
1 2
#!/usr/bin/env bash
# Author: Castro Fidel
3 4 5 6 7
# type: games
# name: Indiegala Client
# image: igclient
# info_en:
# info_ru:
Mikhail Tergoev's avatar
Mikhail Tergoev committed
8 9 10
########################################################################
export LAUNCH_PARAMETERS=("/S")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/igclient_setup.exe"
11
export PW_DLL_INSTALL="vcrun2019"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
12 13

start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
14
if try_download "https://content.indiegalacdn.com/common/IGClientSetup.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
Mikhail Tergoev's avatar
Mikhail Tergoev committed
15
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
16
    pw_start_progress_bar_install_game "Indiegala Client."
Mikhail Tergoev's avatar
Mikhail Tergoev committed
17 18 19 20
    pw_kill_autostart IGClient.exe 3 &
    pw_run "${PW_AUTOINSTALL_EXE}"
    portwine_exe="${WINEPREFIX}/drive_c/Program Files/IGClient/IGClient.exe"
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
21
    try_remove_file "${portwine_exe}.ppdb"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
22 23 24 25 26 27
    kill_portwine
    pw_stop_progress_bar
    export PORTWINE_CREATE_SHORTCUT_NAME="IGClient"
    portwine_create_shortcut
fi
stop_portwine