deep-wine-runner/WineLib/run.sh
2023-07-10 22:35:54 +08:00

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 \
-- "$@"