mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
20 lines
527 B
Bash
Executable File
20 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
|
|
# /opt 目录识别
|
|
option=""
|
|
|
|
if [[ -d /usr/lib32 ]]; then
|
|
option="$option --dev-bind \"$SHELL_FOLDER/lib32\" /usr/lib32 "
|
|
fi
|
|
|
|
if [[ -d /usr/lib64 ]]; then
|
|
option="$option --dev-bind \"$SHELL_FOLDER/lib64\" /usr/lib64 "
|
|
fi
|
|
|
|
"$SHELL_FOLDER/bwrap" --dev-bind / / \
|
|
--dev-bind "$SHELL_FOLDER/bin" /usr/bin \
|
|
--dev-bind "$SHELL_FOLDER/lib" /usr/lib \
|
|
--dev-bind /usr/lib/locale /usr/lib/locale \
|
|
$option \
|
|
$SHELL_FOLDER/runner/deepin-wine-runner $*
|