export PW_NO_FSYNC=0 # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support.
export PW_NO_ESYNC=0 # Do not use eventfd-based in-process synchronization primitives
export PW_USE_GSTREAMER=0 # 0 - disabled use winegstreamer
##export PULSE_LATENCY_MSEC=60 # Fix crackling audio in games
##export PW_NO_WRITE_WATCH=1 # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games).
##export PW_HEAP_DELAY_FREE=1
##export PW_WINE_ALLOW_XIM=1 # Disable XIM support until libx11 >= 1.7 is widespread
##export WINEARCH=win32 # defaut = win64
##export WINEPREFIX=
export PW_WINEDBG_DISABLE=1 # Disabled WINEDBG
##export PW_USE_TERMINAL=1 # Force run in terminal
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}"
if try_download_silent "https://webinstallers.gog-statics.com/download/GOG_Galaxy_2.0.exe""${PW_GOG_WEB_INSTALL_EXE}"
then
pw_kill_autostart GalaxyInstaller.exe &
pw_kill_autostart GOG_Galaxy_2.0.exe &
# while true; do
# if [ -z `ps -Ao pid,cmd | grep -v grep | grep GalaxyInstaller.exe | awk '{print $1}'` ]; then
[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
for PROGS in"wget""curl""tar""awk""zenity""cabextract";do
for PROGS in"wget""curl""tar""awk""zenity""cabextract""pidof";do
if[!-x"`which "${PROGS}" 2>/dev/null`"];then
PROGS_INST="${PROGS_INST}${PROGS}"&&vexit=1
fi
...
...
@@ -30,21 +46,20 @@ fi
cd"$(dirname"`readlink-f"$0"`")"
links="$(pwd)"
deflink="${HOME}/PortWINE/${portname}"
[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
SET_LANG=`zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
PW_SET_LANG="English"
export PW_SILENT_INSTALL="1"
elif[-z"${PW_SET_LANG}"];then
PW_SET_LANG=`zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
--column="Set:"--column"Language:"\
TRUE "Russian"\
FALSE "English"` 2> /dev/null
if[$?-eq 1 ];then exit 1 ;fi
case$SET_LANGin
case$PW_SET_LANGin
"Russian")
INFO_TEXT="Вы запустили установщик PortWINE ${portname} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями."> /dev/null 2>&1 ;;
inst1=`zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=220 \
[$(id-u)-eq 0 ]&&echo"Do not run the script from the superuser!"&& zenity --error--text"Do not run the script from the superuser!" 2> /dev/null &&exit 1
PW_SET_LANG=`zenity --title"Install $portname"--text"Select the installation language"--list--radiolist\
--column="Set:"--column"Language:"\
TRUE "Russian"\
FALSE "English"` 2> /dev/null
if[$?-eq 1 ];then exit 1 ;fi
case$PW_SET_LANGin
"Russian")
INFO_TEXT="Вы запустили установщик PortWINE ${portname} версии ${port_ver}. \n\nЭто не коммерческий продукт и развивается исключительно за идею и Ваши пожертвования. \nВсе права сторонего програмного обеспечения принадлежат их владельцам! \nПродолжая установку вы автоматически соглашаетесь с данными условиями."> /dev/null 2>&1 ;;
"English")
INFO_TEXT="You run the installer PortWINE ${portname} v. ${port_ver}. \n\nThis is not a commercial product and developed exclusively for the idea and donate. \nAll rights to third-party software belong to their respective owners! \nContinuing the installation of you agree to these terms."> /dev/null 2>&1 ;;
inst1=`zenity --title"Install ${portname}"--text"Выберите путь для установки (обновления) порта,\nили оставьте его по умолчанию."--list--radiolist--width=350 --height=220 \
inst1=`zenity --title"Install ${portname}"--text"Select the installation path (update) port,\nor leave it in default."--list--radiolist--width=350 --height=220 \
--column="Set..."--column"Path:"\
TRUE "${deflink}"\
FALSE "Other path..."` 2> /dev/null
if[$?-eq 1 ];then exit 1;fi
case$inst1in
"${deflink}")
D_PATH="${deflink}";;
"Other path...")
D_PATH=`zenity --file-selection--directory--title="Select the path..."`