PW_VBA-M 870 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3
# Author: chal55rus (Sergey P.)
########################################################################
4
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/visualboyadvance-m-Win-x86_64.zip"
5
start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
6
if try_download "https://github.com/visualboyadvance-m/visualboyadvance-m/releases/latest/download/visualboyadvance-m-Win-x86_64.zip" "${PW_AUTOINSTALL_EXE}" no_mirror
7
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
8
    pw_start_progress_bar_install_game "VBA-M."
castro-fidel's avatar
castro-fidel committed
9
    "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files (x86)/Visualboyadvance-m"
10
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Visualboyadvance-m/visualboyadvance-m.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="VBA-M"
    portwine_create_shortcut
fi
stop_portwine