forked from CastroFidel/PortWINE
Scripts version 2143
This commit is contained in:
18
data_from_portwine/scripts/pw_autoinstall/PW_ORIGIN
Executable file
18
data_from_portwine/scripts/pw_autoinstall/PW_ORIGIN
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Author: Castro-Fidel (linux-gaming.ru)
|
||||
########################################################################
|
||||
export LAUNCH_PARAMETERS=("/silent" "/NoLaunch" )
|
||||
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/OriginSetup.exe"
|
||||
start_portwine
|
||||
if try_download "origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe" "${PW_AUTOINSTALL_EXE}"
|
||||
then
|
||||
pw_start_progress_bar_block "${loc_gui_installing_the} Origin. ${loc_gui_please_wait}"
|
||||
# pw_kill_autostart Origin.exe &
|
||||
pw_run "${PW_AUTOINSTALL_EXE}"
|
||||
portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Origin/Origin.exe"
|
||||
pw_stop_progress_bar
|
||||
try_remove_file "${PW_AUTOINSTALL_EXE}"
|
||||
kill_portwine
|
||||
portwine_create_shortcut
|
||||
fi
|
||||
stop_portwine
|
Reference in New Issue
Block a user