mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 01:28:28 +08:00
修复离线包的构建问题
This commit is contained in:
parent
d8d09128e6
commit
ee0c213899
@ -58,7 +58,10 @@ jobs:
|
||||
sudo rm -rf package/runner/RegShot.exe
|
||||
sudo rm -rf package/runner/novnc
|
||||
sudo rm -rf package/bin/wine*
|
||||
# 修复 which 命令的问题导致无法正常识别终端的问题
|
||||
sudo cp package/bin/which.debianutils package/bin/which -rv
|
||||
cp deep-wine-runner/off-line-shell/run.sh package -rv
|
||||
cp deep-wine-runner/off-line-shell/run-system-bwrap.sh package -rv
|
||||
cp deep-wine-runner/off-line-shell/bwrap_arm64 package/bwrap -rv
|
||||
sudo chmod 777 -Rv package ; true
|
||||
cd package
|
||||
|
@ -57,7 +57,10 @@ jobs:
|
||||
sudo rm -rf package/runner/RegShot.exe
|
||||
sudo rm -rf package/runner/novnc
|
||||
sudo rm -rf package/bin/wine*
|
||||
# 修复 which 命令的问题导致无法正常识别终端的问题
|
||||
sudo cp package/bin/which.debianutils package/bin/which -rv
|
||||
cp deep-wine-runner/off-line-shell/run.sh package -rv
|
||||
cp deep-wine-runner/off-line-shell/run-system-bwrap.sh package -rv
|
||||
cp deep-wine-runner/off-line-shell/bwrap_amd64 package/bwrap -rv
|
||||
sudo chmod 777 -Rv package ; true
|
||||
cd package
|
||||
|
20
off-line-shell/run-system-bwrap.sh
Executable file
20
off-line-shell/run-system-bwrap.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
|
||||
# /opt 目录识别
|
||||
option=""
|
||||
|
||||
if [[ -d /usr/lib32 ]] && [[ -d $SHELL_FOLDER/lib32 ]]; then
|
||||
option="$option --dev-bind $SHELL_FOLDER/lib32 /usr/lib32 "
|
||||
fi
|
||||
|
||||
if [[ -d /usr/lib64 ]] && [[ -d $SHELL_FOLDER/lib64 ]]; then
|
||||
option="$option --dev-bind $SHELL_FOLDER/lib64 /usr/lib64 "
|
||||
fi
|
||||
|
||||
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 \
|
||||
--dev-bind "$SHELL_FOLDER/share" /usr/share \
|
||||
$option \
|
||||
$SHELL_FOLDER/runner/deepin-wine-runner $*
|
Loading…
Reference in New Issue
Block a user