mirror of
				https://gitee.com/gfdgd-xi/deep-wine-runner
				synced 2025-11-04 15:32:23 +08:00 
			
		
		
		
	修复小问题
This commit is contained in:
		
							parent
							
								
									b31c4bf134
								
							
						
					
					
						commit
						9fd8f5144f
					
				@ -28,26 +28,28 @@ do
 | 
			
		||||
        fi
 | 
			
		||||
    fi
 | 
			
		||||
done
 | 
			
		||||
if [[ -L /usr/lib64 ]] && [[ ! -d "$CURRENT_DIR/usr/lib64" ]]; then
 | 
			
		||||
if [[ -d /usr/lib64 ]] && [[ ! -d "$CURRENT_DIR/usr/lib64" ]]; then
 | 
			
		||||
    mkdir -p "$CURRENT_DIR/usr/lib64"
 | 
			
		||||
fi
 | 
			
		||||
for libr in `ls /usr/lib64/ld*.so*`
 | 
			
		||||
do
 | 
			
		||||
    if [[ -f $libr ]]; then
 | 
			
		||||
        if [[ ! -f "$CURRENT_DIR/$libr" ]]; then
 | 
			
		||||
            systemNeedCommand="$systemNeedCommand --ro-bind $libr $libr "        
 | 
			
		||||
            touch "$CURRENT_DIR/$libr"
 | 
			
		||||
        else
 | 
			
		||||
            if [[ ! -s "$CURRENT_DIR/$libr" ]]; then
 | 
			
		||||
if [[ -d /usr/lib64/ ]]; then
 | 
			
		||||
    for libr in `ls /usr/lib64/ld*.so*`
 | 
			
		||||
    do
 | 
			
		||||
        if [[ -f $libr ]]; then
 | 
			
		||||
            if [[ ! -f "$CURRENT_DIR/$libr" ]]; then
 | 
			
		||||
                systemNeedCommand="$systemNeedCommand --ro-bind $libr $libr "        
 | 
			
		||||
                touch "$CURRENT_DIR/$libr"
 | 
			
		||||
            else
 | 
			
		||||
                if [[ ! -s "$CURRENT_DIR/$libr" ]]; then
 | 
			
		||||
                    systemNeedCommand="$systemNeedCommand --ro-bind $libr $libr "        
 | 
			
		||||
                fi
 | 
			
		||||
            fi
 | 
			
		||||
        fi
 | 
			
		||||
    fi
 | 
			
		||||
done
 | 
			
		||||
    done
 | 
			
		||||
fi
 | 
			
		||||
if [[ ! -d "$CURRENT_DIR/usr/lib/locale" ]]; then
 | 
			
		||||
    systemNeedCommand="$systemNeedCommand --ro-bind /usr/lib/locale /usr/lib/locale "      
 | 
			
		||||
fi
 | 
			
		||||
echo $systemNeedCommand
 | 
			
		||||
 | 
			
		||||
if [[ ! -d "$CURRENT_DIR/usr/lib64" ]]; then
 | 
			
		||||
    bwrap --dev-bind / / \
 | 
			
		||||
        --bind "$CURRENT_DIR/usr/lib" /lib \
 | 
			
		||||
 | 
			
		||||
@ -3076,10 +3076,11 @@ if os.path.exists(f"{programPath}/WineLib/usr"):
 | 
			
		||||
        global diyRunnerLib
 | 
			
		||||
        action = QtWidgets.QAction(f"{name}")
 | 
			
		||||
        mapLink.append(action)
 | 
			
		||||
        action.triggered.connect(lambda: AddRunnerLib(int(str(number))))
 | 
			
		||||
        action.triggered.connect(lambda: DelRunnerLib(int(str(number))))
 | 
			
		||||
        diyRunnerLib.addAction(action)    
 | 
			
		||||
    def DelRunnerLib(number):
 | 
			
		||||
        os.system(f"rm -rf '{libPathList[number]}'")
 | 
			
		||||
        QtWidgets.QMessageBox.information(window, "提示", "删除完成!")
 | 
			
		||||
        mapLink[number].setDisabled(True)
 | 
			
		||||
    for libPath in [f"{programPath}/WineLib/usr/lib", f"{programPath}/WineLib/usr/lib64"]:
 | 
			
		||||
        for i in os.listdir(libPath):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user