mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
14 lines
365 B
Bash
Executable File
14 lines
365 B
Bash
Executable File
#!/bin/bash
|
|
CURRENT_DIR=$(cd $(dirname $0); pwd)
|
|
if [[ ! -d /lib64 ]]; then
|
|
pkexec mkdir /lib64 -p
|
|
fi
|
|
bwrap --dev-bind / / \
|
|
--ro-bind $CURRENT_DIR/lib /lib \
|
|
--ro-bind $CURRENT_DIR/lib64 /lib \
|
|
--ro-bind $CURRENT_DIR/usr /usr \
|
|
--ro-bind /usr/share /usr/share \
|
|
--ro-bind /usr/bin /usr/bin \
|
|
--ro-bind /usr/sbin /usr/sbin \
|
|
-- "$@"
|