PW_MAME 757 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}/mame0237b_64bit.exe"
5
start_portwine
castro-fidel's avatar
castro-fidel committed
6
if try_download "github.com/mamedev/mame/releases/download/mame0237/mame0237b_64bit.exe" "${PW_AUTOINSTALL_EXE}"
7
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
8
    pw_start_progress_bar_block "${loc_gui_installing_the} MAME. ${loc_gui_please_wait} "
castro-fidel's avatar
castro-fidel committed
9
    "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files (x86)/Mame"
10
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Mame/mame.exe"
castro-fidel's avatar
castro-fidel committed
11
    try_remove_file "${PW_AUTOINSTALL_EXE}"
12
    kill_portwine
castro-fidel's avatar
castro-fidel committed
13
    pw_stop_progress_bar
14 15 16 17
    export PORTWINE_CREATE_SHORTCUT_NAME="MAME"
    portwine_create_shortcut
fi
stop_portwine