PW_STEAM 1.03 KB
Newer Older
1
#!/usr/bin/env bash
castro-fidel's avatar
castro-fidel committed
2
# Author: Castro-Fidel (linux-gaming.ru)
3 4
########################################################################
export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Steam")
castro-fidel's avatar
castro-fidel committed
5
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/SteamSetup.exe"
6
start_portwine
castro-fidel's avatar
castro-fidel committed
7
if try_download "cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe" "${PW_AUTOINSTALL_EXE}"
8
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
9
    pw_start_progress_bar_cs "${loc_gui_installing_the} Steam. ${loc_gui_please_wait} "
castro-fidel's avatar
castro-fidel committed
10 11
    pw_kill_autostart steam.exe &
    pw_run "${PW_AUTOINSTALL_EXE}"
12 13 14 15
    if [ -f "$WINEPREFIX/drive_c/Program Files (x86)/Steam/Steam.exe" ]
    then mv -f "$WINEPREFIX/drive_c/Program Files (x86)/Steam/Steam.exe" "$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe"
    fi
    portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Steam/steam.exe"
castro-fidel's avatar
castro-fidel committed
16
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
17
    try_remove_file "${portwine_exe}.ppdb"
18
    kill_portwine
castro-fidel's avatar
castro-fidel committed
19
    pw_stop_progress_bar
20 21 22 23
    export PORTWINE_CREATE_SHORTCUT_NAME="STEAM_PP"
    portwine_create_shortcut
fi
stop_portwine