- Add '-n' for non volatile Wine dir.
This commit is contained in:
parent
bd61472ab2
commit
7963f52a3a
@ -5,11 +5,12 @@ Welcome to RX3-Docker/Wine docker image!
|
|||||||
This is project aims to build a Wine + X11 + Pulse docker image able to run any windows graphic & audio application isolated.
|
This is project aims to build a Wine + X11 + Pulse docker image able to run any windows graphic & audio application isolated.
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
- Curtently based on rx3-docker/x11-pulse:1.2.3-mga9 image.
|
- Curtently based on rx3-docker/x11-pulse:1.2.3-mga9 image,
|
||||||
|
- Support by defaul volatile Wine dir (/tmp/wine) or non volatile (~/.wine).
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
./bin/run.sh [-h] [-i] <Application Dir> <Application Exec> [Args...]
|
./bin/run.sh [-h] [-i] [-n] <Application Dir> <Application Exec> [Args...]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enjoy it!
|
Enjoy it!
|
||||||
|
@ -4,7 +4,8 @@ Rx3-Docker/Wine V 1.0.1 - A. GIBERT - 2025/04/14
|
|||||||
|
|
||||||
- Now use rx3-docker/x11-pulse:1.2.3-mga9 image,
|
- Now use rx3-docker/x11-pulse:1.2.3-mga9 image,
|
||||||
- Add absolute & relative command path support,
|
- Add absolute & relative command path support,
|
||||||
- Add spaces support in Application Dir & Command.
|
- Add spaces support in Application Dir & Command,
|
||||||
|
- Add '-n' for non volatile Wine dir.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
35
bin/run.sh
35
bin/run.sh
@ -8,21 +8,34 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
|
|||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
if [[ "$1" == "-h" ]]
|
export APPL_NETWORK="no-internet"
|
||||||
then
|
Pre_Cmd="export WINEPREFIX=/tmp/wine; mkdir /tmp/wine;"
|
||||||
echo "usage: run.sh [-h] [-i] <Application_Dir> <Application_Exec> [Args...]"
|
|
||||||
echo "with -i enabling internet access."
|
|
||||||
|
while [[ "$1" == "-h" || "$1" == "-i" || "$1" == "-n" ]]
|
||||||
|
do
|
||||||
|
if [[ "$1" == "-h" ]]
|
||||||
|
then
|
||||||
|
echo "usage: run.sh [-h] [-n] [-i] <Application_Dir> <Application_Exec> [Args...]"
|
||||||
|
echo "with -i enabling internet access,"
|
||||||
|
echo "with -n enabling non volatile wine directory."
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "-i" ]]
|
if [[ "$1" == "-i" ]]
|
||||||
then
|
then
|
||||||
shift;
|
shift;
|
||||||
export APPL_NETWORK="internet"
|
export APPL_NETWORK="internet"
|
||||||
else
|
fi
|
||||||
export APPL_NETWORK="no-internet"
|
|
||||||
fi
|
if [[ "$1" == "-n" ]]
|
||||||
|
then
|
||||||
|
shift;
|
||||||
|
Pre_Cmd=""
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
export APPL_DIR="$1"
|
export APPL_DIR="$1"
|
||||||
shift
|
shift
|
||||||
@ -43,6 +56,6 @@ cd "${APPL_HOME_DIR}"
|
|||||||
|
|
||||||
sbin/docker_mk_env
|
sbin/docker_mk_env
|
||||||
|
|
||||||
docker compose run --rm wine /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} "${APPL_DIR}" "${APPL_NAME}" "$@"
|
docker compose run --rm wine /usr/local/sbin/user_add_exec ${USER_ID} ${USER} ${HOME} ${GROUP_ID} ${GROUP_NAME} "${APPL_DIR}" ${Pre_Cmd} "${APPL_NAME}" "$@"
|
||||||
|
|
||||||
docker compose down
|
docker compose down
|
||||||
|
Loading…
Reference in New Issue
Block a user