PW_CALIBER 1005 Bytes
Newer Older
castro-fidel's avatar
castro-fidel committed
1 2 3 4
#!/usr/bin/env bash
# Author: chal55rus
########################################################################
export PW_PREFIX_NAME="CALIBER"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
5
export LAUNCH_PARAMETERS=("/VERYSILENT" "/CLOSEAPPLICATIONS")
castro-fidel's avatar
castro-fidel committed
6
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/CaliberSetup.exe"
7 8
export PW_WINE_USE="PROTON_LG"
# export DISABLE_CP_DEFPFX="1"
9
export PORTWINE_CREATE_SHORTCUT_NAME="CALIBER"
castro-fidel's avatar
castro-fidel committed
10 11

start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
12
if try_download "https://cdn.playcaliber.com/caliber-s3/p1/a88c3b70f76a0e56b1e08b62c9895cfe/launcher/setup/CaliberSetup.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
castro-fidel's avatar
castro-fidel committed
13
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
14
    pw_start_progress_bar_install_game "CALIBER."
castro-fidel's avatar
castro-fidel committed
15 16 17
    pw_kill_autostart VC_redist.x64.exe 3 &
    pw_run "${PW_AUTOINSTALL_EXE}"
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/1C Game Studios/Caliber/Launcher.exe"
18
    pw_create_unique_exe "caliber_launcher_pp"
castro-fidel's avatar
castro-fidel committed
19
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
20
    try_remove_file "${portwine_exe}.ppdb"
castro-fidel's avatar
castro-fidel committed
21 22 23 24 25
    kill_portwine
    pw_stop_progress_bar
    portwine_create_shortcut
fi
stop_portwine