Wine运行库

This commit is contained in:
2023-07-10 22:35:54 +08:00
parent adf35abfc7
commit 2dab9ef7ce
5 changed files with 73 additions and 5 deletions

13
WineLib/run.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/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 \
-- "$@"