PW_CEMU 864 Bytes
Newer Older
castro-fidel's avatar
castro-fidel committed
1 2 3 4 5 6
#!/usr/bin/env bash
# Author: linux-gaming.ru
########################################################################
export PW_URL_CEMU=($(curl -s "https://cemu.info" | grep "zip" | cut -d \" -f 2))
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/`echo ${PW_URL_CEMU} | awk -F/ '{print $5}'`"
start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
7
if try_download "${PW_URL_CEMU}" "${PW_AUTOINSTALL_EXE}" no_mirror
castro-fidel's avatar
castro-fidel committed
8
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
9
    pw_start_progress_bar_install_game "Cemu."
castro-fidel's avatar
castro-fidel committed
10 11 12
    "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files (x86)"
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/`echo ${PW_URL_CEMU} | awk -F/ '{print $5}' | sed 's/.zip//'`/Cemu.exe"
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
13
    try_remove_file "${portwine_exe}.ppdb"
castro-fidel's avatar
castro-fidel committed
14 15 16 17 18 19
    kill_portwine
    pw_stop_progress_bar
    export PORTWINE_CREATE_SHORTCUT_NAME="Cemu"
    portwine_create_shortcut
fi
stop_portwine