You need to sign in or sign up before continuing.
PW_RETROARCH 782 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3
# Author: chal55rus (Sergey P.)
########################################################################
castro-fidel's avatar
castro-fidel committed
4
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/RetroArch.7z"
5
start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
6
if try_download "https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/RetroArch.7z" "${PW_AUTOINSTALL_EXE}" no_mirror
7
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
8
    pw_start_progress_bar_install_game "RetroArch."
castro-fidel's avatar
castro-fidel committed
9
    "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files (x86)"
10
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/RetroArch-Win64/retroarch.exe"
castro-fidel's avatar
castro-fidel committed
11
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
12
    try_remove_file "${portwine_exe}.ppdb"
13
    kill_portwine
castro-fidel's avatar
castro-fidel committed
14
    pw_stop_progress_bar
15 16 17 18
    export PORTWINE_CREATE_SHORTCUT_NAME="RetroArch"
    portwine_create_shortcut
fi
stop_portwine