PW_ITCH 804 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3 4
# Author: chal55rus (Sergey P.)
########################################################################## 
export LAUNCH_PARAMETERS=("--silent")
castro-fidel's avatar
castro-fidel committed
5
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/itch-setup.exe"
6
start_portwine
castro-fidel's avatar
castro-fidel committed
7
if try_download "itch.io/app/download?platform=windows" "${PW_AUTOINSTALL_EXE}"
8
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
9
    pw_start_progress_bar_block "${loc_gui_installing_the} ITCH.IO. ${loc_gui_please_wait} "
castro-fidel's avatar
castro-fidel committed
10 11
    pw_kill_autostart itch.exe &
    pw_run "${PW_AUTOINSTALL_EXE}"
12
    portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/itch/app-25.5.1/itch.exe"
castro-fidel's avatar
castro-fidel committed
13
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
14
    try_remove_file "${portwine_exe}.ppdb"
15
    kill_portwine
castro-fidel's avatar
castro-fidel committed
16
    pw_stop_progress_bar
17 18 19 20
    export PORTWINE_CREATE_SHORTCUT_NAME="Itch"
    portwine_create_shortcut
fi
stop_portwine