update mw autoinstall

This commit is contained in:
Mikhail Tergoev
2024-01-18 22:28:53 +03:00
parent 535fec969d
commit 55760cd8f2
3 changed files with 8 additions and 6 deletions

View File

@ -2,8 +2,9 @@
# Author: ValoKarDin
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/.exe"
export PW_PREFIX_NAME="MW"
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/modern_warships.exe"
export PW_PREFIX_NAME="MODERN_WARSHIPS"
export PORTWINE_CREATE_SHORTCUT_NAME="Modern Warships"
start_portwine
@ -12,8 +13,8 @@ then
pw_start_progress_bar_block "Starting Modern Warships installation..."
pw_kill_autostart launcher.exe &
pw_run "${PW_AUTOINSTALL_EXE}"
portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/ModernWarships/launcher.exe"
export PORTWINE_CREATE_SHORTCUT_NAME="Modern Warships"
portwine_exe="$WINEPREFIX/drive_c/users/$USER/AppData/Local/ModernWarships/launcher.exe"
pw_create_unique_exe "modern_warships_pp"
try_remove_file "${PW_AUTOINSTALL_EXE}"
try_remove_file "${portwine_exe}.ppdb"
kill_portwine