PW_ROCKSTAR 1001 Bytes
Newer Older
1
#!/usr/bin/env bash
2 3
# Author: chal55rus (Sergey P.)
########################################################################
4
export PW_VULKAN_USE="1"
castro-fidel's avatar
castro-fidel committed
5
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Rockstar-Games-Launcher.exe"
6 7
export PORTWINE_CREATE_SHORTCUT_NAME="Rockstar"

8
start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
9
if try_download "https://gamedownloads.rockstargames.com/public/installer/Rockstar-Games-Launcher.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
10
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
11
    pw_start_progress_bar_install_game "Rockstar Games Launcher."
12
    try_remove_dir "$WINEPREFIX/drive_c/Program Files/Rockstar Games/Launcher"
13 14
    pw_kill_autostart RockstarService.exe &
    pw_run "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
15
    portwine_exe="$(find "$WINEPREFIX/drive_c/" -type f -name "Launcher.exe" | grep "Rockstar Games/Launcher/Launcher.exe")"
16
    pw_create_unique_exe "rockstar_launcher_pp"
castro-fidel's avatar
castro-fidel committed
17
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
18
    try_remove_file "${portwine_exe}.ppdb"
19
    kill_portwine
castro-fidel's avatar
castro-fidel committed
20
    pw_stop_progress_bar
21 22 23
    portwine_create_shortcut
fi
stop_portwine