Added silent installation

This commit is contained in:
castro-fidel
2020-12-03 22:41:55 +03:00
parent 5c369f4ee4
commit 999b4592be
12 changed files with 25 additions and 13 deletions

View File

@ -1,17 +1,21 @@
#!/bin/bash
# Author: PortWINE-Linux.ru
. "$(dirname $(readlink -f "$0"))/runlib"
START_PORTWINE
if [ -f "$1" ]; then
export portwine_exe="$(readlink -f "$1")"
export PATH_TO_GAME="$( cd "$( dirname "$1" )" >/dev/null 2>&1 && pwd )"
START_PORTWINE
if [ ! -z ${optirun_on} ]; then
"${PW_RUNTIME}" $PW_TERM ${optirun_on} "${port_on_run}" "run" "$portwine_exe"
else
"${PW_RUNTIME}" $PW_TERM "${port_on_run}" "run" "$portwine_exe"
fi
else
START_PORTWINE
sh "${PORT_SCRIPTS_PATH}/winefile"
if [ ! -z ${optirun_on} ]
then
"${PW_RUNTIME}" $PW_TERM ${optirun_on} "${port_on_run}" "run" "explorer"
else
"${PW_RUNTIME}" $PW_TERM "${port_on_run}" "run" "explorer"
fi
fi
STOP_PORTWINE