Commit 92b1f966 authored by Mikhail Tergoev's avatar Mikhail Tergoev

updated autoinstall: GOG

parent d21f4f11
#!/usr/bin/env bash
#Author: Dezert1r
#Author: Dezert1r, Fidel
#GalaxyClient.exe
#GOG_Galaxy_2.0.exe
#Rating=1-5
#Rating=5
################################################
export PW_VULKAN_USE=2
export PW_VULKAN_USE="2"
export WINEDLLOVERRIDES="galaxycommunication.exe=n;libglesv2="
export LAUNCH_PARAMETERS="/runWithoutUpdating /deelevated"
export PW_PREFIX_NAME="GOG"
export DISABLE_CP_DEFPFX=1
export PW_WINE_USE=PROTON_STEAM_8.0-4
export DISABLE_CP_DEFPFX="1"
export PW_WINE_USE="WINE_LG"
add_in_start_portwine ()
{
......
......@@ -2,18 +2,15 @@
# Author: Castro-Fidel (linux-gaming.ru)
########################################################################
export LAUNCH_PARAMETERS=("/VERYSILENT")
GOG_VER="$(curl "https://remote-config.gog.com/components/webinstaller?component_version=2.0.0" \
| awk -F'galaxy_client_' '{print $2}' \
| awk -F'.pkg' '{print $1}')"
[[ "${GOG_VER}" != 2.* ]] && yad_error "ERROR: Get the GOG version." && exit 1
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/setup_galaxy_${GOG_VER}.exe"
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/setup_galaxy.exe"
export PW_PREFIX_NAME="GOG"
export DISABLE_CP_DEFPFX=1
export PW_WINE_USE=PROTON_STEAM_8.0-4
export DISABLE_CP_DEFPFX="1"
export PW_WINE_USE="WINE_LG"
export PORTWINE_CREATE_SHORTCUT_NAME="GOG GALAXY"
start_portwine
if try_download "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/${GOG_VER}/setup_galaxy_${GOG_VER}.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
if try_download "https://webinstallers.gog-statics.com/download/GOG_Galaxy_2.0.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
then
pw_start_progress_bar_install_game "GOG Galaxy."
pw_run "${PW_AUTOINSTALL_EXE}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment