forked from CastroFidel/PortWINE
		
	###Scripts version 2011###
This commit is contained in:
		| @@ -1,15 +1,18 @@ | ||||
| История изменений и дальнейшие планы: | ||||
| ----------------------------------------- | ||||
| В планах: | ||||
| * добавить проверку перевода карретки при изменении db файлой | ||||
| * добавить проверку количества db файлов на один exe | ||||
| * перенести скрипты установки порта на github | ||||
| * добавить авто-обновление версии WINE | ||||
| * добавить фикс установки dotnet | ||||
| * добавить контроль запуска *exe для правильного отключения прогресс бара | ||||
| * добавить комментарии описывающие функционал скриптов | ||||
| * добавить комментарии описывающие функционал скриптов и db файлов | ||||
| * заниматься только развитием проекта за счет вашей подписки на https://boosty.to/portwine-linux.ru | ||||
| ----------------------------------------- | ||||
| ###Scripts version 2011### | ||||
| * в GUI AUTOINSTALL добавлены лаунчеры GAMEFORGE (TEST), ANKAMA и GLYPH - Спасибо chal55rus (Sergey P.)! | ||||
| * удален скрипт autoinstall и создан каталог pw_autoinstall (для удобного добавления новых автоустановщиков) | ||||
| * в AUTOINSTALL обновлена версия скачиваемого GOG | ||||
| * в GUI редактора db файлов добавлена кнопка "OPEN DB FILE" для внесение изменений в текстовом редакторе | ||||
| * в функцию pw_other_fixes добавлен поиск и выключение автозапуска PunkBuster в реестре префикса | ||||
|  | ||||
| ###Scripts version 2010### | ||||
| * FIX - исправлено управление мышкой в Overwatch и рекомендованы пар-ры запуска DXVK + PROTON_GE | ||||
| * добавлены все предустановленные шейдеры в vkBasalt.conf | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/data_from_portwine.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/data_from_portwine.tar.gz
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/ankama.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/ankama.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/gameforge.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/gameforge.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/glyph.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/glyph.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.5 KiB | 
| @@ -1,255 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| kill_portwine | ||||
| sleep 3 | ||||
| export PW_USER_TEMP="$WINEPREFIX/drive_c/users/${USER}/Temp" | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0 | ||||
| export PW_USE_GAMEMODE=0 | ||||
| export PW_CHECK_AUTOINSTAL=1 | ||||
| export PW_GUI_DISABLED_CS=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=0 | ||||
| export PW_VULKAN_USE=0 | ||||
| unset PW_WINE_VER | ||||
| export PW_WINE_USE=proton_steam | ||||
| export PW_NO_FSYNC=1 | ||||
| export PW_NO_ESYNC=1 | ||||
| unset PORTWINE_CREATE_SHORTCUT_NAME | ||||
| export PW_DISABLED_CREAT_DB=1 | ||||
|  | ||||
| PW_WGC () { | ||||
|     export LAUNCH_PARAMETERS=("/VERYSILENT") | ||||
|     [ "${update_loc}" = "RUS" ] && export WGC_LOC=RU || export WGC_LOC=EU | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Starting WGC installation..." | ||||
|         pw_kill_autostart wgc.exe & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/ProgramData/Wargaming.net/GameCenter/wgc_api/wgc_api.exe" | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="Wargaming Game Center" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_ORIGIN () { | ||||
|     export LAUNCH_PARAMETERS=("/silent" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/OriginSetup.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://download.dm.origin.com/origin/live/OriginSetup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the Origin. 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 | ||||
| } | ||||
|  | ||||
| PW_BATTLE_NET () { | ||||
|     [ "${update_loc}" = "RUS" ] && export BN_LOC=ruRU || export BN_LOC=enUS | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Battle.net-Setup-${BN_LOC}.exe" | ||||
|     start_portwine | ||||
|     if try_download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-${BN_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR "Installing the Battle Net. Please wait..." | ||||
|         pw_kill_autostart Battle.net.exe & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "Battle.net.exe"` | ||||
|         PW_STOP_PROGRESS | ||||
|         portwine_create_shortcut | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_EPIC () { | ||||
|     export LAUNCH_PARAMETERS=("/q" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EpicGamesLauncherInstaller.msi" | ||||
|     start_portwine | ||||
|     if try_download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing Epic Games Launcher. Please wait..." | ||||
|         pw_kill_autostart EpicGamesLauncher.exe & | ||||
|         pw_run msiexec /i "${PW_AUTOINSTALL_EXE}" & | ||||
|         sleep 10 | ||||
|         if [ ! -z `pgrep msiexec* | head -n 1` ] ; then | ||||
|             while [ ! -z `pgrep msiexec* | head -n 1` ] || [ ! -z `pgrep rundll32* | head -n 1` ] || [ ! -z `pgrep -a wrap | grep ${portname} | head -n 1` ] | ||||
|             do | ||||
|                 [ ! -z `pgrep rundll32* | head -n 1` ] && kill -n 9 `pgrep rundll32* | head -n 1` && echo "Kill rundll32.exe" | ||||
|                 sleep 5 | ||||
|             done | ||||
|         fi | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_GOG () { | ||||
|     export LAUNCH_PARAMETERS=("/VERYSILENT") | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/setup_galaxy_2.0.37.384.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/2.0.37.384/setup_galaxy_2.0.37.384.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the GOG Galaxy. Please wait..." | ||||
|         pw_kill_autostart GalaxyClient.* & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_EVE () { | ||||
|     export PW_WINDOWS_VER=10 | ||||
|     export PW_DLL_INSTALL="vcrun2017" | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EveLauncher-1892908.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://binaries.eveonline.com/EveLauncher-1892908.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the EVE Launcher. Please wait..." | ||||
|         if [ ! -f "$WINEPREFIX/drive_c/Games/EVE Online/Launcher/evelauncher.exe" ] ; then | ||||
|             try_remove_dir "$WINEPREFIX/drive_c/Games/EVE Online" | ||||
|             dd if="${PW_AUTOINSTALL_EXE}" of="${PW_AUTOINSTALL_EXE}".7z bs=1M skip=31646603 count=196171208 iflag=skip_bytes,count_bytes | ||||
|             "$pw_7z" x "${PW_AUTOINSTALL_EXE}".7z -o"$WINEPREFIX/drive_c/Games/EVE Online" | ||||
|             try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|             try_remove_file "${PW_AUTOINSTALL_EXE}".7z | ||||
|         fi | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Games/EVE Online/Launcher/evelauncher.exe" | ||||
|         pw_stop_progress_bar | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_UBC () { | ||||
| 	export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Ubisoft Game Launcher") | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/UbisoftConnectInstaller.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
| 		pw_start_progress_bar_cs "Installing the Ubisoft Connect. Please wait..." | ||||
|         pw_kill_autostart UbisoftConnect.exe & | ||||
| 		pw_run "${PW_AUTOINSTALL_EXE}" | ||||
| 		portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Ubisoft Game Launcher/UbisoftConnect.exe" | ||||
| 		try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
| 		kill_portwine | ||||
| 		pw_stop_progress_bar | ||||
| 		portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_STEAM () { | ||||
| 	export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Steam") | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/SteamSetup.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
| 		pw_start_progress_bar_cs "Installing the Steam. Please wait..." | ||||
|         pw_kill_autostart steam.exe & | ||||
| 		pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         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" | ||||
| 		try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
| 		kill_portwine | ||||
| 		pw_stop_progress_bar | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="STEAM_PP" | ||||
| 		portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_OSU () { | ||||
|     export WINEPREFIX="${PORT_WINE_PATH}/data/pfx_dotnet" | ||||
|     export PW_DLL_INSTALL="dotnet40" | ||||
|     mkdir -p "${WINEPREFIX}/drive_c/Program Files (x86)/OSU/" | ||||
|     export PW_AUTOINSTALL_EXE="${WINEPREFIX}/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://m1.ppy.sh/r/osu!install.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the OSU!. Please wait..." | ||||
|         if  [ -f "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!install.exe" ]; then | ||||
|             mv -f  "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!install.exe" "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
|         fi | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
|         portwine_create_shortcut | ||||
| 		pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         pw_stop_progress_bar | ||||
|         kill_portwine | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_BETHESDA () { | ||||
|     export LAUNCH_PARAMETERS=("/silent" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/BethesdaNetLauncher_Setup.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://download.cdp.bethesda.net/BethesdaNetLauncher_Setup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the BethesdaNetLauncher. Please wait..." | ||||
|         pw_kill_autostart BethesdaNetLauncher.exe & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Bethesda.net Launcher/BethesdaNetLauncher.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="Bethesda.net" | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_ROCKSTAR () { | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Rockstar-Games-Launcher.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://gamedownloads.rockstargames.com/public/installer/Rockstar-Games-Launcher.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Rockstar-Games-Launcher. Please wait..." | ||||
|         "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files/Rockstar Games/Launcher" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files/Rockstar Games/Launcher/Launcher.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="Rockstar" | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_MYGAMES () { | ||||
|     export LAUNCH_PARAMETERS=("") | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/MyGamesLoader.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://static.gc.my.games/MyGamesLoader.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the My.Games. Please wait..." | ||||
|         pw_kill_autostart GameCenter.exe & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/GameCenter/GameCenter.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="MY.GAMES" | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
| @@ -407,11 +407,13 @@ stop_portwine () { | ||||
|     if [ ! -z "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" ] | ||||
|     then kill -s SIGUSR1 "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" | ||||
|     fi | ||||
|     if [  ! -z "`ls "${WINEPREFIX}"/drive_c/users/steamuser/Temp/ | head -n 1`" ] | ||||
|     then | ||||
|     if [  ! -z "`ls "${WINEPREFIX}"/drive_c/users/steamuser/Temp/ | head -n 1`" ] ; then | ||||
|         chmod -R 755 "${WINEPREFIX}"/drive_c/users/steamuser/Temp/ | ||||
|         rm -fr "${WINEPREFIX}"/drive_c/users/steamuser/Temp/* | ||||
|     fi | ||||
|     if [  ! -z "`ls "${WINEPREFIX}"/drive_c/ | grep -m 1 ".tmp"`" ] ; then | ||||
|         rm -f "${WINEPREFIX}"/drive_c/*.tmp | ||||
|     fi | ||||
| } | ||||
|  | ||||
| pw_tray_icon () { | ||||
| @@ -576,7 +578,7 @@ pw_kill_autostart () { | ||||
|     else | ||||
|         sleep 10 | ||||
|         while true ; do | ||||
|             if  [ -z "`ps aux | grep "$1" | grep -v grep | head -n 1 | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then | ||||
|             if  [ -z "`ps aux | grep -m 1 "$1" | grep -v grep | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then | ||||
|                 echo -e "PID "$1" not found" | ||||
|                 sleep 1 | ||||
|             else | ||||
| @@ -585,6 +587,9 @@ pw_kill_autostart () { | ||||
|             fi | ||||
|         done | ||||
|     fi | ||||
|     if [  ! -z "`ls "${WINEPREFIX}"/drive_c/ | grep -m 1 ".tmp"`" ] ; then | ||||
|         rm -f "${WINEPREFIX}"/drive_c/*.tmp | ||||
|     fi | ||||
| } | ||||
|  | ||||
| edit_db_from_gui () { | ||||
| @@ -615,10 +620,11 @@ pw_gui_for_edit_db () { | ||||
|     } | ||||
|     edit_db_field_add $@ | ||||
|     output_yad_edit_db=`"${pw_yad}" --title "EDIT_DB" --text-align=center --text "Change settings in database file for ${PORTWINE_DB}\n" \ | ||||
|     --columns=4 --form --separator=" " --borders=10 --center  ${ADD_CHK_BOX_EDIT_DB} ` | ||||
|     --columns=4 --form --separator=" " --borders=10 --center  ${ADD_CHK_BOX_EDIT_DB} \ | ||||
|     --button="CANCEL":1 --button="OPEN DB FILE":150 --button="SAVE CHANGES":0 ` | ||||
|     YAD_STATUS="$?" | ||||
|     if [ "$YAD_STATUS" == "1" ] ; then exit 0 | ||||
|     elif [ "$YAD_STATUS" == "252" ] ; then | ||||
|     if [ "$YAD_STATUS" == "1" ] || [ "$YAD_STATUS" == "252" ] ; then exit 0 | ||||
|     elif [ "$YAD_STATUS" == "150" ] ; then | ||||
|         xdg-open "${PORTWINE_DB_FILE}" & | ||||
|         exit 0 | ||||
|     fi | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| ################################################ | ||||
| export WINEDLLOVERRIDES="galaxycommunication.exe=n;libglesv2=" | ||||
| export LAUNCH_PARAMETERS="/runWithoutUpdating /deelevated" | ||||
| export PW_DLL_INSTALL="vcrun2017 mfc140" | ||||
| export PW_DLL_INSTALL="vcrun2019 mfc140" | ||||
| add_in_start_portwine () | ||||
| { | ||||
| if [ -e "${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ] ; then | ||||
|   | ||||
							
								
								
									
										27
									
								
								data_from_portwine/scripts/portwine_db/gfclient
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								data_from_portwine/scripts/portwine_db/gfclient
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| #!/bin/bash | ||||
| #Author: xuser | ||||
| #gfclient.exe | ||||
| #Rating=1-5 | ||||
| #####################examples########################### | ||||
| export PW_COMMENT_DB="GameForge\nClient" | ||||
| export PW_VULKAN_USE=dxvk | ||||
| export PW_WINE_USE=proton_ge | ||||
| export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| export PW_DLL_INSTALL="vcrun2019 d3dcompiler_43 d3dcompiler_47"               # Install DDL in port prefix (used winetricks)  | ||||
| export WINEDLLOVERRIDES="gfclient0_msvc140=n;ucrtbase=b" | ||||
| ######################################################## | ||||
| #add_in_start_portwine () { | ||||
| # | ||||
| #while true; do | ||||
| #    if  [ -z "`pgrep GameforgeClient`" ]; then  | ||||
| #        sleep 1 | ||||
| #    else | ||||
| #        while [ ! -z "`pgrep GameforgeClient`" ] ; do | ||||
| #                killall -s KILL gfservice.exe | ||||
| #        done | ||||
| #            sleep 1 | ||||
| #            killall -s KILL gfclient.exe | ||||
| #            break & exit 0 | ||||
| #    fi | ||||
| #done & | ||||
| #} | ||||
							
								
								
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_ANKAMA
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_ANKAMA
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/S") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Ankama Launcher-Setup.exe" | ||||
| start_portwine | ||||
| if try_download "https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the Ankama Launcher. Please wait..." | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files/Ankama/Ankama Launcher/Ankama Launcher.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="AnkamaLauncher" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										17
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_BATTLE_NET
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_BATTLE_NET
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| [ "${update_loc}" = "RUS" ] && export BN_LOC=ruRU || export BN_LOC=enUS | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Battle.net-Setup-${BN_LOC}.exe" | ||||
| start_portwine | ||||
| if try_download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-${BN_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     PW_START_PROGRESS_BAR "Installing the Battle Net. Please wait..." | ||||
|     pw_kill_autostart Battle.net.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "Battle.net.exe"` | ||||
|     PW_STOP_PROGRESS | ||||
|     portwine_create_shortcut | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_BETHESDA
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_BETHESDA
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/VERYSILENT" ) | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/BethesdaNetLauncher_Setup.exe" | ||||
| start_portwine | ||||
| if try_download "https://download.cdp.bethesda.net/BethesdaNetLauncher_Setup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the BethesdaNetLauncher. Please wait..." | ||||
|     pw_kill_autostart BethesdaNetLauncher.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Bethesda.net Launcher/BethesdaNetLauncher.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="Bethesda.net" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										26
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_EPIC
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										26
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_EPIC
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/q" ) | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EpicGamesLauncherInstaller.msi" | ||||
| start_portwine | ||||
| if try_download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing Epic Games Launcher. Please wait..." | ||||
|     pw_kill_autostart EpicGamesLauncher.exe & | ||||
|     pw_run msiexec /i "${PW_AUTOINSTALL_EXE}" & | ||||
|     sleep 10 | ||||
|     if [ ! -z `pgrep msiexec* | head -n 1` ] ; then | ||||
|         while [ ! -z `pgrep msiexec* | head -n 1` ] || [ ! -z `pgrep rundll32* | head -n 1` ] || [ ! -z `pgrep -a wrap | grep ${portname} | head -n 1` ] | ||||
|         do | ||||
|             [ ! -z `pgrep rundll32* | head -n 1` ] && kill -n 9 `pgrep rundll32* | head -n 1` && echo "Kill rundll32.exe" | ||||
|             sleep 5 | ||||
|         done | ||||
|     fi | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										22
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_EVE
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_EVE
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/bin/bash | ||||
| # Author: cefeiko | ||||
| ######################################################################## | ||||
| export PW_WINDOWS_VER=10 | ||||
| export PW_DLL_INSTALL="vcrun2017" | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EveLauncher-1892908.exe" | ||||
| start_portwine | ||||
| if try_download "https://binaries.eveonline.com/EveLauncher-1892908.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the EVE Launcher. Please wait..." | ||||
|     if [ ! -f "$WINEPREFIX/drive_c/Games/EVE Online/Launcher/evelauncher.exe" ] ; then | ||||
|         try_remove_dir "$WINEPREFIX/drive_c/Games/EVE Online" | ||||
|         dd if="${PW_AUTOINSTALL_EXE}" of="${PW_AUTOINSTALL_EXE}".7z bs=1M skip=31646603 count=196171208 iflag=skip_bytes,count_bytes | ||||
|         "$pw_7z" x "${PW_AUTOINSTALL_EXE}".7z -o"$WINEPREFIX/drive_c/Games/EVE Online" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}".7z | ||||
|     fi | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Games/EVE Online/Launcher/evelauncher.exe" | ||||
|     pw_stop_progress_bar | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										37
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GAMEFORGE
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										37
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GAMEFORGE
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.), cefeiko, Castro-Fidel (PortWINE-Linux.ru) | ||||
| ########################################################################## | ||||
| pw_shutdown_please () { | ||||
|     if [ "$PW_USE_RUNTIME" != 1 ] | ||||
|     then echo "PW_USE_RUNTIME: `echo $PW_USE_RUNTIME`" | ||||
|     else | ||||
|         sleep 10 | ||||
|         while true ; do | ||||
|             if  [ -z "`ps aux | grep -v grep | grep -wm 1 "$1" | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then | ||||
|                 echo -e "PID "$1" not found" | ||||
|                 sleep 1 | ||||
|             else | ||||
|                 killall -s TERM gfclient.exe | ||||
|                 killall -s TERM GameforgeInstaller.exe | ||||
|                 break | ||||
|             fi | ||||
|         done | ||||
|     fi | ||||
| } | ||||
|  | ||||
| export LAUNCH_PARAMETERS=("") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/GameforgeInstaller.exe" | ||||
| start_portwine | ||||
| if try_download "https://raw.githubusercontent.com/WarfaceZ/lutris-clients/master/GameforgeInstaller.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Gameforge-Client. Please wait..." | ||||
|     pw_shutdown_please SparkWebHelper.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/GameforgeClient/gfclient.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="GameforgeClient" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GLYPH
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GLYPH
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/S" ) | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/GlyphInstall.exe" | ||||
| start_portwine | ||||
| if try_download "http://download.dyn.triongames.com/GlyphInstall.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the GlyphClient. Please wait..." | ||||
|     pw_kill_autostart GlyphClient.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Glyph/GlyphClient.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="GlyphClient" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GOG
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_GOG
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/VERYSILENT") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/setup_galaxy_2.0.41.150.exe" | ||||
| start_portwine | ||||
| if try_download "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/2.0.41.150/setup_galaxy_2.0.41.150.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the GOG Galaxy. Please wait..." | ||||
|     pw_kill_autostart GalaxyClient.* & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/GOG Galaxy/GalaxyClient.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_MYGAMES
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_MYGAMES
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/MyGamesLoader.exe" | ||||
| start_portwine | ||||
| if try_download "https://static.gc.my.games/MyGamesLoader.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the My.Games. Please wait..." | ||||
|     pw_kill_autostart GameCenter.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/GameCenter/GameCenter.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="MY.GAMES" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										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 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/silent" ) | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/OriginSetup.exe" | ||||
| start_portwine | ||||
| if try_download "https://download.dm.origin.com/origin/live/OriginSetup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the Origin. 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  | ||||
							
								
								
									
										21
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_OSU
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_OSU
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| #!/bin/bash | ||||
| # Author: cefeiko | ||||
| ######################################################################## | ||||
| export WINEPREFIX="${PORT_WINE_PATH}/data/pfx_dotnet" | ||||
| export PW_DLL_INSTALL="dotnet40" | ||||
| mkdir -p "${WINEPREFIX}/drive_c/Program Files (x86)/OSU/" | ||||
| export PW_AUTOINSTALL_EXE="${WINEPREFIX}/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
| start_portwine | ||||
| if try_download "https://m1.ppy.sh/r/osu!install.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Installing the OSU!. Please wait..." | ||||
|     if  [ -f "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!install.exe" ]; then | ||||
|         mv -f  "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!install.exe" "${PORT_WINE_PATH}/data/pfx_dotnet/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
|     fi | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/OSU/osu!.exe" | ||||
|     portwine_create_shortcut | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     pw_stop_progress_bar | ||||
|     kill_portwine | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										17
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_ROCKSTAR
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_ROCKSTAR
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| #!/bin/bash | ||||
| # Author: chal55rus (Sergey P.) | ||||
| ######################################################################## | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Rockstar-Games-Launcher.exe" | ||||
| start_portwine | ||||
| if try_download "https://gamedownloads.rockstargames.com/public/installer/Rockstar-Games-Launcher.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Rockstar-Games-Launcher. Please wait..." | ||||
|     "$pw_7z" x -y "${PW_AUTOINSTALL_EXE}" -o"$WINEPREFIX/drive_c/Program Files/Rockstar Games/Launcher" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files/Rockstar Games/Launcher/Launcher.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="Rockstar" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										22
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_STEAM
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_STEAM
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Steam") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/SteamSetup.exe" | ||||
| start_portwine | ||||
| if try_download "https://cdn.cloudflare.steamstatic.com/client/installer/SteamSetup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_cs "Installing the Steam. Please wait..." | ||||
|     pw_kill_autostart steam.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     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" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="STEAM_PP" | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_UBC
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_UBC
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/S" "/D=c:\Program Files (x86)\Ubisoft Game Launcher") | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/UbisoftConnectInstaller.exe" | ||||
| start_portwine | ||||
| if try_download "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_cs "Installing the Ubisoft Connect. Please wait..." | ||||
|     pw_kill_autostart UbisoftConnect.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Ubisoft Game Launcher/UbisoftConnect.exe" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     pw_stop_progress_bar | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
							
								
								
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_WGC
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										19
									
								
								data_from_portwine/scripts/pw_autoinstall/PW_WGC
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #!/bin/bash | ||||
| # Author: cefeiko | ||||
| ######################################################################## | ||||
| export LAUNCH_PARAMETERS=("/VERYSILENT") | ||||
| [ "${update_loc}" = "RUS" ] && export WGC_LOC=RU || export WGC_LOC=EU | ||||
| export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" | ||||
| start_portwine | ||||
| if try_download "https://redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
| then | ||||
|     pw_start_progress_bar_block "Starting WGC installation..." | ||||
|     pw_kill_autostart wgc.exe & | ||||
|     pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|     portwine_exe="$WINEPREFIX/drive_c/ProgramData/Wargaming.net/GameCenter/wgc_api/wgc_api.exe" | ||||
|     export PORTWINE_CREATE_SHORTCUT_NAME="Wargaming Game Center" | ||||
|     try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|     kill_portwine | ||||
|     portwine_create_shortcut | ||||
| fi | ||||
| stop_portwine | ||||
| @@ -437,6 +437,8 @@ read "portname" < "${PORT_WINE_TMP_PATH}/portname" && export portname | ||||
| cd "${PORT_SCRIPTS_PATH}" | ||||
| . "${PORT_SCRIPTS_PATH}/var" | ||||
|  | ||||
| [ -f "${PORT_SCRIPTS_PATH}/autoinstall" ] && try_remove_file "${PORT_SCRIPTS_PATH}/autoinstall" | ||||
|  | ||||
| if [ ! -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ] ; then | ||||
| 	SET_LANG=`zenity --title  "Install $portname" --text "Select the language" --list --radiolist \ | ||||
| 	--column="Set:" --column "Language:" TRUE "RUS" FALSE "ENG" ` | ||||
|   | ||||
| @@ -211,8 +211,23 @@ pw_edit_db () { | ||||
| } | ||||
|  | ||||
| pw_autoinstall_from_db () { | ||||
|     . "$PORT_SCRIPTS_PATH/autoinstall" | ||||
|     $PW_YAD_SET | ||||
|     kill_portwine | ||||
|     sleep 3 | ||||
|     export PW_USER_TEMP="$WINEPREFIX/drive_c/users/${USER}/Temp" | ||||
|     export PW_FORCE_LARGE_ADDRESS_AWARE=0 | ||||
|     export PW_USE_GAMEMODE=0 | ||||
|     export PW_CHECK_AUTOINSTAL=1 | ||||
|     export PW_GUI_DISABLED_CS=1 | ||||
|     export PW_WINEDBG_DISABLE=1 | ||||
|     export PW_NO_WRITE_WATCH=0 | ||||
|     export PW_VULKAN_USE=0 | ||||
|     unset PW_WINE_VER | ||||
|     export PW_WINE_USE=proton_steam | ||||
|     export PW_NO_FSYNC=1 | ||||
|     export PW_NO_ESYNC=1 | ||||
|     unset PORTWINE_CREATE_SHORTCUT_NAME | ||||
|     export PW_DISABLED_CREAT_DB=1 | ||||
|     . "${PORT_SCRIPTS_PATH}/pw_autoinstall/${PW_YAD_SET}" | ||||
| } | ||||
|  | ||||
| ###MAIN### | ||||
| @@ -287,6 +302,7 @@ else | ||||
|             rm -f `grep -il PortProton "${HOME}/.local/share/applications"/*` | ||||
|             update-desktop-database -q "${HOME}/.local/share/applications" | ||||
|         fi | ||||
|         exit 0 | ||||
|     } | ||||
|     export -f gui_rm_portproton | ||||
|  | ||||
| @@ -308,7 +324,7 @@ else | ||||
|     --field="WINE UNINSTALLER":"BTN" '@bash -c "button_click gui_wine_uninstaller"' \ | ||||
|     --field="REMOVE PORTPROTON":"BTN" '@bash -c "button_click gui_rm_portproton"' & \ | ||||
|  | ||||
|     "${pw_yad}" --plug=$KEY --tabnum=2 --form --columns=2  --scroll \ | ||||
|     "${pw_yad}" --plug=$KEY --tabnum=2 --form --columns=3  --scroll  --height=500 \ | ||||
|     --field="   Wargaming Game Center"!"$PW_GUI_ICON_PATH/wgc.png":"BTN" '@bash -c "button_click PW_WGC"' \ | ||||
|     --field="   Battle.net Launcher"!"$PW_GUI_ICON_PATH/battle_net.png":"BTN" '@bash -c "button_click PW_BATTLE_NET"' \ | ||||
|     --field="   Epic Games Launcher"!"$PW_GUI_ICON_PATH/epicgames.png":"BTN" '@bash -c "button_click PW_EPIC"' \ | ||||
| @@ -320,7 +336,10 @@ else | ||||
|     --field="   Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/Bethesda.png":"BTN" '@bash -c "button_click PW_BETHESDA"' \ | ||||
|     --field="   Rockstar Games Launcher"!"$PW_GUI_ICON_PATH/Rockstar.png":"BTN" '@bash -c "button_click PW_ROCKSTAR"' \ | ||||
|     --field="   My.Games Launcher"!"$PW_GUI_ICON_PATH/mygames.png":"BTN" '@bash -c "button_click PW_MYGAMES"' \ | ||||
|     --field="   OSU"!"$PW_GUI_ICON_PATH/osu.png":"BTN" '@bash -c "button_click PW_OSU"' & \ | ||||
|     --field="   OSU"!"$PW_GUI_ICON_PATH/osu.png":"BTN" '@bash -c "button_click PW_OSU"' \ | ||||
|     --field="   Glyph Client"!"$PW_GUI_ICON_PATH/glyph.png":"BTN" '@bash -c "button_click  PW_GLYPH"' \ | ||||
|     --field="   Ankama Launcher"!"$PW_GUI_ICON_PATH/ankama.png":"BTN" '@bash -c "button_click PW_ANKAMA"' \ | ||||
|     --field="   Gameforge Client"!"$PW_GUI_ICON_PATH/gameforge.png":"BTN" '@bash -c "button_click  PW_GAMEFORGE"' & \ | ||||
|  | ||||
|     "${pw_yad}" --plug=${KEY} --tabnum=1 --columns=3 --form --separator=";" \ | ||||
|     --image "$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
| @@ -377,6 +396,7 @@ if [ -z "${PW_DISABLED_CREAT_DB}" ] ; then | ||||
|         edit_db_from_gui PW_VULKAN_USE PW_WINE_USE | ||||
|     fi | ||||
| fi | ||||
| echo "PW_YAD_SET=$PW_YAD_SET" | ||||
| case "$PW_YAD_SET" in | ||||
|     1|252) exit 0 ;; | ||||
|     100) portwine_create_shortcut ;; | ||||
| @@ -388,6 +408,10 @@ case "$PW_YAD_SET" in | ||||
|     WINEREG|114) pw_winereg ;; | ||||
|     WINETRICKS|116) pw_winetricks ;; | ||||
|     118) pw_edit_db ;; | ||||
|     gui_clear_pfx) gui_clear_pfx ;; | ||||
|     gui_open_var) gui_open_var ;; | ||||
|     gui_wine_uninstaller) gui_wine_uninstaller ;; | ||||
|     gui_rm_portproton) gui_rm_portproton ;; | ||||
|     *) pw_autoinstall_from_db ;; | ||||
| esac | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| #!/bin/bash | ||||
| #Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| #SCRIPTS_NEXT_VERSION=2010 | ||||
| #SCRIPTS_NEXT_VERSION=2011 | ||||
| ######################################################################## | ||||
| export PW_MANGOHUD=1 | ||||
| export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt | ||||
| @@ -48,11 +48,18 @@ echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| pw_other_fixes () { | ||||
|     #fix after installation Origin, for disabled OriginWebHelperService by default | ||||
|     if [ ! -z `cat "${WINEPREFIX}/system.reg" | grep Origin.exe | head -n 1 | awk '{print $1}'` ] ; then | ||||
|         sysreg_norig=$(((`cat -n "${WINEPREFIX}/system.reg" | grep OriginWebHelperService | awk '{print $1}'` + 3))) | ||||
| #fix after installation Origin, for disabled OriginWebHelperService by default | ||||
| if [ ! -z `cat "${WINEPREFIX}/system.reg" | grep -wm 1 "Origin.exe" | awk '{print $1}'` ] ; then | ||||
|     sysreg_norig=$(((`cat -n "${WINEPREFIX}/system.reg" | grep OriginWebHelperService | awk '{print $1}'` + 3))) | ||||
|     sed -i "${sysreg_norig}s/dword:0000000[1-2]/dword:00000003/" "${WINEPREFIX}/system.reg" | ||||
| fi | ||||
| #fix after installation PnkBstr*, for disabled PnkBstr* by default | ||||
| for fix_reg in "PnkBstrA.exe" "PnkBstrB.exe" ; do | ||||
|     if [ ! -z `cat "${WINEPREFIX}/system.reg" | grep -wm 1 "${fix_reg}" | awk '{print $1}'` ] ; then | ||||
|         sysreg_norig=$(((`cat -n "${WINEPREFIX}/system.reg" | grep "${fix_reg}" | awk '{print $1}'` + 3))) | ||||
|         sed -i "${sysreg_norig}s/dword:0000000[1-2]/dword:00000003/" "${WINEPREFIX}/system.reg" | ||||
|     fi | ||||
| done | ||||
| } | ||||
| ###FOR_OLD_VERSION_PORTPROTON### | ||||
| #SCRIPTS_VERSION=1000 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user