修复运行库安装闪退问题

This commit is contained in:
gfdgd xi 2023-07-11 10:23:56 +08:00
parent 808471c330
commit 70014b29ef
4 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@ CURRENT_DIR=$(cd $(dirname $0); pwd)
cd $CURRENT_DIR cd $CURRENT_DIR
if [[ -f $CURRENT_DIR/usr/lib/ld-linux-x86-64.so.2 ]]; then if [[ -f $CURRENT_DIR/usr/lib/ld-linux-x86-64.so.2 ]]; then
echo 运行库已安装,按回车键退出 echo 运行库已安装,按回车键退出
read
exit exit
fi fi
aria2c -x 16 -s 16 -d /tmp https://jihulab.com/gfdgd-xi/bwrapruntime/-/raw/main/library.tar.xz aria2c -x 16 -s 16 -d /tmp https://jihulab.com/gfdgd-xi/bwrapruntime/-/raw/main/library.tar.xz

View File

@ -3,6 +3,7 @@ CURRENT_DIR=$(cd $(dirname $0); pwd)
cd $CURRENT_DIR cd $CURRENT_DIR
if [[ ! -f $CURRENT_DIR/usr/lib/ld-linux-x86-64.so.2 ]]; then if [[ ! -f $CURRENT_DIR/usr/lib/ld-linux-x86-64.so.2 ]]; then
echo 运行库未安装,按回车键退出 echo 运行库未安装,按回车键退出
read
exit exit
fi fi
sudo rm -rfv lib sudo rm -rfv lib

View File

@ -1,5 +1,5 @@
{ {
"Version": "3.2.2", "Version": "3.3.0",
"Time": "未知", "Time": "未知",
"Thank": [ "Thank": [
"感谢 RacoonGX 的付出与贡献", "感谢 RacoonGX 的付出与贡献",

View File

@ -3015,7 +3015,7 @@ installLib.addAction(statusRunnerLib)
installLib.addAction(installRunnerLib) installLib.addAction(installRunnerLib)
installLib.addAction(removeRunnerLib) installLib.addAction(removeRunnerLib)
installRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]).start()) installRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]).start())
removeRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/install.sh'"]).start()) removeRunnerLib.triggered.connect(lambda: threading.Thread(target=OpenTerminal, args=[f"bash '{programPath}/WineLib/remove.sh'"]).start())
if os.path.exists(f"{programPath}/WineLib/usr/lib/ld-linux-x86-64.so.2"): if os.path.exists(f"{programPath}/WineLib/usr/lib/ld-linux-x86-64.so.2"):
installRunnerLib.setDisabled(True) installRunnerLib.setDisabled(True)
removeRunnerLib.setEnabled(True) removeRunnerLib.setEnabled(True)