mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 11:02:04 +08:00
Wine运行库
This commit is contained in:
13
WineLib/run.sh
Executable file
13
WineLib/run.sh
Executable 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 \
|
||||
-- "$@"
|
||||
Reference in New Issue
Block a user