mirror of
				https://gitee.com/gfdgd-xi/deep-wine-runner
				synced 2025-11-04 07:22:23 +08:00 
			
		
		
		
	
		
			Some checks failed
		
		
	
	Auto Building Wine Runner / deb (push) Has been cancelled
				
			Auto Building Wine Runner / rpm (push) Has been cancelled
				
			Auto Building Wine Runner / pkg (push) Has been cancelled
				
			Building Wine Runner Off-line Pages / amd64 (push) Has been cancelled
				
			Building Wine Runner Off-line Pages / arm64 (push) Has been cancelled
				
			Building Wine Runner Off-line Pages / loongarch64 (push) Has been cancelled
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			995 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			995 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/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
 | 
						|
 | 
						|
if [[ -d /usr/share/fonts ]]; then
 | 
						|
    option="$option --dev-bind /usr/share/fonts /usr/share/fonts "
 | 
						|
fi
 | 
						|
 | 
						|
if [[ -d $SHELL_FOLDER/gnemul ]]; then
 | 
						|
    if [[ ! -d /usr/gnemul ]]; then
 | 
						|
        pkexec mkdir -p /usr/gnemul
 | 
						|
    fi
 | 
						|
    option="$option --dev-bind $SHELL_FOLDER/gnemul /usr/gnemul "
 | 
						|
fi
 | 
						|
 | 
						|
bwrap --dev-bind / / \
 | 
						|
    --dev-bind "$SHELL_FOLDER/bin" /usr/bin \
 | 
						|
    --dev-bind "$SHELL_FOLDER/bin" /bin \
 | 
						|
    --dev-bind "$SHELL_FOLDER/lib" /usr/lib \
 | 
						|
    --dev-bind "$SHELL_FOLDER/lib" /lib \
 | 
						|
    --dev-bind /usr/lib/locale /usr/lib/locale \
 | 
						|
    --dev-bind "$SHELL_FOLDER/share" /usr/share \
 | 
						|
    $option \
 | 
						|
    $SHELL_FOLDER/runner/deepin-wine-runner $*
 |