Scripts version 2150

This commit is contained in:
castro-fidel
2022-12-11 19:07:17 +03:00
parent cc8529c551
commit bd440ce8e7
6 changed files with 29 additions and 3 deletions

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Author: Castro Fidel
########################################################################
export LAUNCH_PARAMETERS=("/q")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Warframe.msi"
start_portwine
if try_download "http://content.warframe.com/dl/Warframe.msi" "${PW_AUTOINSTALL_EXE}"
then
pw_start_progress_bar_block "${loc_gui_installing_the} Warframe. ${loc_gui_please_wait} "
pw_kill_autostart Launcher.exe 3 &
pw_run msiexec /i "${PW_AUTOINSTALL_EXE}"
portwine_exe="${WINEPREFIX}/drive_c/users/$USER/AppData/Local/Warframe/Downloaded/Public/Tools/Launcher.exe"
try_remove_file "${PW_AUTOINSTALL_EXE}"
kill_portwine
pw_stop_progress_bar
export PORTWINE_CREATE_SHORTCUT_NAME="Warframe"
portwine_create_shortcut
fi
stop_portwine